]> git.saurik.com Git - apt.git/commitdiff
Merge remote-tracking branch 'mvo/bugfix/conffile' into debian/sid
authorMichael Vogt <mvo@debian.org>
Thu, 12 Dec 2013 17:32:44 +0000 (18:32 +0100)
committerMichael Vogt <mvo@debian.org>
Thu, 12 Dec 2013 17:32:44 +0000 (18:32 +0100)
cmdline/apt-get.cc
test/integration/test-apt-get-source-arch

index 6973901dc2c2f8688e9aeeb0e3fd90d059265175..730d3ea18a2f7a8fbcdd43c090755c46ce31823b 100644 (file)
@@ -322,9 +322,12 @@ pkgSrcRecords::Parser *FindSrc(const char *Name,pkgRecords &Recs,
 
       if (Src == "" && ArchTag != "")
       {
-          _error->Error(_("Can not find a package '%s' with version '%s' and "
-                          "release '%s'"), Pkg.FullName().c_str(), 
-                                           VerTag.c_str(), RelTag.c_str());
+         if (VerTag != "")
+            _error->Error(_("Can not find a package '%s' with version '%s'"),
+                          Pkg.FullName().c_str(), VerTag.c_str());
+         if (RelTag != "")
+            _error->Error(_("Can not find a package '%s' with release '%s'"),
+                          Pkg.FullName().c_str(), RelTag.c_str());
          Src = Name;
          return 0;
       }
index 97d0e096a2d651908cbfc9ef344f3f5dbcb63845..d7ed56dc9b8438ce9109c84d79fb572bc3dd778c 100755 (executable)
@@ -61,10 +61,10 @@ E: Unable to find a source package for foo:not-a-available-arch" aptget source -
 
 # error on unavailable version for arch
 testequal "$HEADER
-E: Can not find a package 'foo:amd64' with version '2.0' and release ''
+E: Can not find a package 'foo:amd64' with version '2.0'
 E: Unable to find a source package for foo:amd64=2.0" aptget source -q --print-uris foo:amd64=2.0
 
 # error on unavailable release for arch 
 testequal "$HEADER
-E: Can not find a package 'foo:amd64' with version '' and release 'oldstable'
+E: Can not find a package 'foo:amd64' with release 'oldstable'
 E: Unable to find a source package for foo:amd64/oldstable" aptget source -q --print-uris foo:amd64/oldstable