seeded-in-ubuntu: State in error message that it takes a source package.

LP: #1029155
This commit is contained in:
Benjamin Drung 2012-07-26 21:40:49 +02:00
parent b3f16cbee2
commit 9baf39a262
2 changed files with 13 additions and 2 deletions

5
debian/changelog vendored
View File

@ -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 <stefanor@ubuntu.com> Wed, 18 Jul 2012 12:47:01 +0200
ubuntu-dev-tools (0.143) unstable; urgency=low

View File

@ -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]