bddeb: do not sign by default

instead of making the common use case need to pass '-us -uc',
make the less common use case pass '--sign'.
This commit is contained in:
Scott Moser 2014-07-24 08:47:27 -04:00
parent 8758981101
commit 98d27c72c1
1 changed files with 11 additions and 3 deletions

View File

@ -39,7 +39,7 @@ PKG_MP = {
'pyyaml': 'python-yaml',
'requests': 'python-requests',
}
DEBUILD_ARGS = ["-us", "-S", "-uc", "-d"]
DEBUILD_ARGS = ["-S", "-d"]
def write_debian_folder(root, version, revno, append_requires=[]):
@ -104,10 +104,17 @@ def main():
for ent in DEBUILD_ARGS:
parser.add_argument(ent, dest="debuild_args", action='append_const',
const=ent, help=("pass through '%s' to debuild" % ent))
const=ent, help=("pass through '%s' to debuild" % ent),
default=[])
parser.add_argument("--sign", default=False, action='store_true',
help="sign result. do not pass -us -uc to debuild")
args = parser.parse_args()
if not args.sign:
args.debuild_args.extend(['-us', '-uc'])
os.environ['INIT_SYSTEM'] = args.init_system
capture = True
@ -167,7 +174,8 @@ def main():
print("Copied that archive to %r for local usage (if desired)." %
(util.abs_join(os.getcwd(), tar_fn)))
print("Running 'debuild' in %r" % (xdir))
print("Running 'debuild %s' in %r" % (' '.join(args.debuild_args),
xdir))
with util.chdir(xdir):
cmd = ['debuild', '--preserve-envvar', 'INIT_SYSTEM']
if args.debuild_args: