pull-debian-debdiff: Convert distance to an integer, so it works when

specified.
This commit is contained in:
Stefano Rivera 2011-03-28 13:10:29 +02:00
parent 5bb84b1548
commit e3ea0c9b97
2 changed files with 3 additions and 1 deletions

2
debian/changelog vendored
View File

@ -6,6 +6,8 @@ ubuntu-dev-tools (0.121) UNRELEASED; urgency=low
[ Stefano Rivera ]
* ubuntutools.archive.rmadison: suite can be None, handle this correctly.
* pull-debian-debdiff: Convert distance to an integer, so it works when
specified.
-- Daniel Holbach <daniel.holbach@ubuntu.com> Mon, 21 Mar 2011 12:24:56 +0100

View File

@ -68,7 +68,7 @@ def main():
parser.error('Too many arguments')
package = args[0]
version = args[1]
distance = args[2] if len(args) > 2 else 1
distance = int(args[2]) if len(args) > 2 else 1
config = UDTConfig(opts.no_conf)
if opts.debian_mirror is None: