diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2013-07-29 16:37:31 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2013-07-29 16:37:31 -0400 |
commit | b401be801c31dde56e0818241efeeabc3b1243eb (patch) | |
tree | 620caabd75adbe730d8a45adc1410d12271c3f93 | |
parent | 49394a3d01f05b92ea6635b0fd88f7a1d3a8b14a (diff) | |
download | ipsutils-b401be801c31dde56e0818241efeeabc3b1243eb.tar.gz |
Feature: Add --noalign to disable permission alignment
-rwxr-xr-x | ipsbuild.py | 1 | ||||
-rw-r--r-- | ipsutils/build.py | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ipsbuild.py b/ipsbuild.py index b7ba895..597d41b 100755 --- a/ipsbuild.py +++ b/ipsbuild.py @@ -23,6 +23,7 @@ parser = argparse.ArgumentParser(description='Build Solaris 11 packages from .ip parser.add_argument('--version', action="store_true", help='Show version information') parser.add_argument('--verbose', action="store_true", help='Increased verbosity') parser.add_argument('--nodepsolve', action="store_true", help='Disable dependency resolution') +parser.add_argument('--noalign', action="store_true", help='Disable permission alignment') parser.add_argument('--lint', action="store_true", help='Enables deep packaging checks') parser.add_argument('--fast', action="store_true", help='Use system tools to extract source archive') parser.add_argument('spec', nargs='*', help='An ipsutils spec file') diff --git a/ipsutils/build.py b/ipsutils/build.py index b4848c0..61be395 100644 --- a/ipsutils/build.py +++ b/ipsutils/build.py @@ -51,7 +51,8 @@ class Build(env.Environment): self.controller.task(tasks.Dependencies(cls=self)) if not self.options.nodepsolve: self.controller.task(tasks.Resolve_Dependencies(cls=self)) - self.controller.task(tasks.AlignPermissions(cls=self)) + if not self.options.noalign: + self.controller.task(tasks.AlignPermissions(cls=self)) if self.options.lint: self.controller.task(tasks.Lint(cls=self)) self.controller.task(tasks.Package(cls=self)) |