userland.py revision 181
45N/A# The contents of this file are subject to the terms of the 45N/A# Common Development and Distribution License (the "License"). 45N/A# You may not use this file except in compliance with the License. 45N/A# See the License for the specific language governing permissions 45N/A# and limitations under the License. 45N/A# When distributing Covered Code, include this CDDL HEADER in each 45N/A# If applicable, add the following below this CDDL HEADER, with the 45N/A# fields enclosed by brackets "[]" replaced with your own identifying 45N/A# information: Portions Copyright [yyyy] [name of copyright owner] 84N/A# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. 45N/A# Some userland consolidation specific lint checks 45N/A """An opensolaris.org-specific class to check actions.""" 45N/A "checks Userland packages for common content errors")
84N/A """Combine path and target to get the real path.""" 45N/A """Checks for existence in the proto area.""" 84N/A # check for writable files without a preserve attribute 84N/A _(
"%(path)s is writable (%(mode)s), but missing a preserve" 145N/A _(
"%(path)s has a preserve action, but is not writable (%(mode)s)") % {
"path":
path,
"mode":
mode},
145N/A _(
"%(path)s has a preserve action, but no mode") % {
"path":
path,
"mode":
mode},
84N/A # checks that require a physical file to look at 84N/A _(
"%s missing from proto area, skipping" 84N/A # 32/64 bit in wrong place 84N/A """Checks for link resolution.""" 84N/A _(
"%s %s has unresolvable target '%s'") %
84N/A """Checks for SVR4 startup scripts.""" 84N/A _(
"SVR4 startup '%s', deliver SMF" 84N/A "SVR4 startup scripts should not be delivered.")
45N/A """An opensolaris.org-specific class to check manifests.""" 181N/A "license actions and iARC information are required if you deliver files.")