diff --git a/ack-sync b/ack-sync index 1650a66..822a1de 100755 --- a/ack-sync +++ b/ack-sync @@ -71,7 +71,7 @@ def get_source(package, version, section, dist, uploader_name, uploader_email, if uploader_name is not None: cmd += ["-n", uploader_name] if not upload: - cmd += ['-u',] + cmd += ['--dont-sign',] if upload and key is not None: cmd += ["-k", key] subprocess.check_call(cmd) @@ -244,6 +244,9 @@ def main(bug_numbers, all_package, all_version, all_section, update, uploader_name, uploader_email, bug_number, key, upload) + if dsc_file.endswith('fakesync1.dsc'): + upload = True + # extract source subprocess.check_call(["dpkg-source", "-x", dsc_file]) diff --git a/debian/changelog b/debian/changelog index 472dfbc..e9061eb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -20,12 +20,12 @@ ubuntu-dev-tools (0.105) UNRELEASED; urgency=low - Add a warning that the use of syncpackage is discouraged. - Correct and neaten options. * syncpackage: - - Add -u parameter, to disable signing. + - Add --dont-sign parameter, for test builds. [ Christopher James Halse Rogers ] * mk-sbuild: Add support for btrfs-snapshot based chroots - -- Stefano Rivera Tue, 26 Oct 2010 12:31:55 +0200 + -- Stefano Rivera Wed, 27 Oct 2010 23:20:06 +0200 ubuntu-dev-tools (0.104) experimental; urgency=low diff --git a/doc/syncpackage.1 b/doc/syncpackage.1 index dba4e81..7677860 100644 --- a/doc/syncpackage.1 +++ b/doc/syncpackage.1 @@ -50,7 +50,7 @@ DEBFULLNAME and DEBEMAIL. \fB\-k\fI KEYID\fR, \fB\-\-key\fR=\fIKEYID\fR Specify the key ID to be used for signing. .TP -\fB\-u\fR, \fB\-\-unsigned\fR +\fB\-\-dont-sign\fR Do not sign the upload. .TP \fB\-b\fI BUG\fR, \fB\-\-bug\fR=\fIBUG\fR diff --git a/syncpackage b/syncpackage index 4ab85d3..00d01ee 100755 --- a/syncpackage +++ b/syncpackage @@ -347,13 +347,15 @@ def sync_dsc(script_name, dscurl, debian_dist, release, name, email, bugs, keyid # Build source package cmd = ["debuild", "--no-lintian", "-S", "-v" + cur_ver.full_version] + env = os.environ + env['DEB_VENDOR'] = 'Ubuntu' if need_orig: cmd += ['-sa'] - if not keyid is None: + if keyid: cmd += ["-k" + keyid] if verbose: print_command(script_name, cmd) - subprocess.check_call(cmd) + subprocess.check_call(cmd, env=env) def get_debian_dscurl(package, dist, release, version=None, component=None): if dist is None: @@ -414,7 +416,7 @@ if __name__ == "__main__": default = os.environ["DEBEMAIL"]) parser.add_option("-k", "--key", dest="keyid", help="Specify the key ID to be used for signing.", default=None) - parser.add_option('-u', '--unsigned', dest='keyid', action='store_false', + parser.add_option('--dont-sign', dest='keyid', action='store_false', help='Do not sign the upload') parser.add_option("-b", "--bug", metavar="BUG", help="Mark a Launchpad bug as being fixed by this upload",