From 0cca58d2bb5b8c703883890d76ede32d91e19d62 Mon Sep 17 00:00:00 2001 From: Michael Bienia Date: Tue, 20 Jul 2010 19:47:45 +0200 Subject: [PATCH] requestsync: Fix bug where the variable 'hasLP' is not always set (lp: #607874) --- debian/changelog | 4 +++- requestsync | 4 +--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index 9fd5367..c2c7b5c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -17,8 +17,10 @@ ubuntu-dev-tools (0.101) UNRELEASED; urgency=low [ Michael Bienia ] * Add "import-bug-from-debian" written by James Westby. * Add python-soappy to Recommends. + * requestsync: Fix bug where the variable 'hasLP' is not always set + (lp: #607874). - -- Michael Bienia Sun, 11 Jul 2010 20:32:49 +0200 + -- Michael Bienia Tue, 20 Jul 2010 19:44:18 +0200 ubuntu-dev-tools (0.100) maverick; urgency=low diff --git a/requestsync b/requestsync index 2f8c5dc..bed1c35 100755 --- a/requestsync +++ b/requestsync @@ -81,8 +81,6 @@ if __name__ == '__main__': from ubuntutools.lp.lpapicache import Distribution # See if we have LP credentials and exit if we don't - cannot continue in this case - hasLP = True - try: Launchpad.login() except IOError: @@ -143,7 +141,7 @@ if __name__ == '__main__': sys.exit(1) # Stop if Ubuntu has already the version from Debian or a newer version - if (ubuntu_version >= debian_version) and hasLP: + if (ubuntu_version >= debian_version) and options.lpapi: # try rmadison import ubuntutools.requestsync.mail try: