From 9baf39a262ff2fb7c3d09e21018906f1fb923693 Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Thu, 26 Jul 2012 21:40:49 +0200 Subject: [PATCH] seeded-in-ubuntu: State in error message that it takes a source package. LP: #1029155 --- debian/changelog | 5 +++++ ubuntutools/lp/lpapicache.py | 10 ++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 1ef91f5..7ab8d1d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,6 @@ ubuntu-dev-tools (0.144) UNRELEASED; urgency=low + [ Stefano Rivera ] * submittodebian: - Use dpkg-buildpackage instead of debuild. It really doesn't need to run lintian twice. @@ -15,6 +16,10 @@ ubuntu-dev-tools (0.144) UNRELEASED; urgency=low same name. - Explain that backports aren't to fix bugs. + [ Benjamin Drung ] + * seeded-in-ubuntu: State in error message that it takes a source package. + (LP: #1029155) + -- Stefano Rivera Wed, 18 Jul 2012 12:47:01 +0200 ubuntu-dev-tools (0.143) unstable; urgency=low diff --git a/ubuntutools/lp/lpapicache.py b/ubuntutools/lp/lpapicache.py index dc7764a..39bdc56 100644 --- a/ubuntutools/lp/lpapicache.py +++ b/ubuntutools/lp/lpapicache.py @@ -369,8 +369,14 @@ class Archive(BaseWrapper): latest = record if latest is None: - msg = "The package '%s' does not exist in the %s %s archive" % \ - (name, dist.display_name, self.name) + if name_key == 'binary_name': + package_type = "binary package" + elif name_key == 'source_name': + package_type = "source package" + else: + package_type = "package" + msg = "The %s '%s' does not exist in the %s %s archive" % \ + (package_type, name, dist.display_name, self.name) pockets = [series.name if pocket == 'Release' else '%s-%s' % (series.name, pocket.lower()) for pocket in pockets]