From e3ea0c9b97c45c28a0c8d2c4be021e0becf75333 Mon Sep 17 00:00:00 2001 From: Stefano Rivera Date: Mon, 28 Mar 2011 13:10:29 +0200 Subject: [PATCH] pull-debian-debdiff: Convert distance to an integer, so it works when specified. --- debian/changelog | 2 ++ pull-debian-debdiff | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 881d797..d7dbf31 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Mon, 21 Mar 2011 12:24:56 +0100 diff --git a/pull-debian-debdiff b/pull-debian-debdiff index 601cb99..1b03180 100755 --- a/pull-debian-debdiff +++ b/pull-debian-debdiff @@ -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: