Parcourir la source

report the package name with architecture in the "no file" error message

David Kalnischkies il y a 14 ans
Parent
commit
92f212774b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      apt-pkg/deb/dpkgpm.cc

+ 1 - 1
apt-pkg/deb/dpkgpm.cc

@@ -187,7 +187,7 @@ pkgDPkgPM::~pkgDPkgPM()
 bool pkgDPkgPM::Install(PkgIterator Pkg,string File)
 bool pkgDPkgPM::Install(PkgIterator Pkg,string File)
 {
 {
    if (File.empty() == true || Pkg.end() == true)
    if (File.empty() == true || Pkg.end() == true)
-      return _error->Error("Internal Error, No file name for %s",Pkg.Name());
+      return _error->Error("Internal Error, No file name for %s",Pkg.FullName().c_str());
 
 
    // If the filename string begins with DPkg::Chroot-Directory, return the
    // If the filename string begins with DPkg::Chroot-Directory, return the
    // substr that is within the chroot so dpkg can access it.
    // substr that is within the chroot so dpkg can access it.