Merge lp:~andrewsomething/ubuntu-dev-tools/665202 into lp:~ubuntu-dev/ubuntu-dev-tools/trunk

Proposed by Andrew Starr-Bochicchio
Status: Rejected
Rejected by: Benjamin Drung
Proposed branch: lp:~andrewsomething/ubuntu-dev-tools/665202
Merge into: lp:~ubuntu-dev/ubuntu-dev-tools/trunk
Diff against target: 49 lines (+13/-1)
2 files modified
debian/changelog (+4/-0)
syncpackage (+9/-1)
To merge this branch: bzr merge lp:~andrewsomething/ubuntu-dev-tools/665202
Reviewer Review Type Date Requested Status
Benjamin Drung Disapprove
Review via email: mp+39689@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Benjamin Drung (bdrung) wrote :

I am currently working on the same bug. I will use your error message (that's better than mine).

Revision history for this message
Benjamin Drung (bdrung) wrote :

We worked on the same bug at the same time. I took your error message. My fix is committed in r781.

review: Disapprove

Unmerged revisions

780. By Andrew Starr-Bochicchio

syncpackage: Don't crash if DEBFULLNAME environment variable isn't set (LP: #665202).

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2010-10-29 13:54:02 +0000
+++ debian/changelog 2010-10-30 16:27:47 +0000
@@ -29,6 +29,10 @@
29 * pbuilder-dist: Explicitly use debian keyring when working with a29 * pbuilder-dist: Explicitly use debian keyring when working with a
30 Debian chroot, working around #59969530 Debian chroot, working around #599695
3131
32 [ Andrew Starr-Bochicchio ]
33 * syncpackage: Don't crash if DEBFULLNAME environment variable
34 isn't set (LP: #665202).
35
32 -- Stefano Rivera <stefanor@ubuntu.com> Wed, 27 Oct 2010 23:20:06 +020036 -- Stefano Rivera <stefanor@ubuntu.com> Wed, 27 Oct 2010 23:20:06 +0200
3337
34ubuntu-dev-tools (0.104) experimental; urgency=low38ubuntu-dev-tools (0.104) experimental; urgency=low
3539
=== modified file 'syncpackage'
--- syncpackage 2010-10-27 21:20:26 +0000
+++ syncpackage 2010-10-30 16:27:47 +0000
@@ -394,6 +394,7 @@
394 usage = "%s [options] <.dsc URL/path or package name>" % (script_name)394 usage = "%s [options] <.dsc URL/path or package name>" % (script_name)
395 epilog = "See %s(1) for more info." % (script_name)395 epilog = "See %s(1) for more info." % (script_name)
396 parser = optparse.OptionParser(usage=usage, epilog=epilog)396 parser = optparse.OptionParser(usage=usage, epilog=epilog)
397 uploader_name = None
397398
398 parser.add_option("-d", "--distribution", type = "string",399 parser.add_option("-d", "--distribution", type = "string",
399 dest = "dist", default = None,400 dest = "dist", default = None,
@@ -409,7 +410,7 @@
409 parser.add_option("-n", "--uploader-name", dest="uploader_name",410 parser.add_option("-n", "--uploader-name", dest="uploader_name",
410 help="Use UPLOADER_NAME as the name of the maintainer "411 help="Use UPLOADER_NAME as the name of the maintainer "
411 "for this upload instead of evaluating DEBFULLNAME.",412 "for this upload instead of evaluating DEBFULLNAME.",
412 default = os.environ["DEBFULLNAME"])413 default = uploader_name)
413 parser.add_option("-e", "--uploader-email", dest="uploader_email",414 parser.add_option("-e", "--uploader-email", dest="uploader_email",
414 help="Use UPLOADER_EMAIL as email address of the maintainer "415 help="Use UPLOADER_EMAIL as email address of the maintainer "
415 "for this upload instead of evaluating DEBEMAIL.",416 "for this upload instead of evaluating DEBEMAIL.",
@@ -433,6 +434,13 @@
433 (script_name, ", ".join(args))434 (script_name, ", ".join(args))
434 sys.exit(1)435 sys.exit(1)
435436
437 if options.uploader_name is None:
438 try:
439 options.uploader_name = os.environ["DEBFULLNAME"]
440 except KeyError:
441 print >> sys.stderr, "%s: Error: No UPLOADER_NAME. You must pass the --uploader-name option or set the DEBFULLNAME environment variable." % (script_name)
442 sys.exit(1)
443
436 invalid_bug_numbers = filter(lambda x: not x.isdigit(), options.bugs)444 invalid_bug_numbers = filter(lambda x: not x.isdigit(), options.bugs)
437 if len(invalid_bug_numbers) > 0:445 if len(invalid_bug_numbers) > 0:
438 print >> sys.stderr, "%s: Error: Invalid bug number(s) specified: %s" % \446 print >> sys.stderr, "%s: Error: Invalid bug number(s) specified: %s" % \