From: Michael Vogt Date: Mon, 6 Aug 2007 14:48:55 +0000 (+0200) Subject: * apt-pkg/deb/dpkgpm.cc: X-Git-Tag: 0.7.24ubuntu1~156 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/25ffa4e814c5e8cceae339476787291d3ee584cf?ds=inline;hp=--cc * apt-pkg/deb/dpkgpm.cc: - fix packagename extraction when writting apport reports --- 25ffa4e814c5e8cceae339476787291d3ee584cf diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index a65f6eb0a..dad8da9ed 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -895,9 +895,9 @@ void pkgDPkgPM::WriteApportReport(const char *pkgpath, const char *errormsg) // get the pkgname and reportfile pkgname = flNotDir(pkgpath); - pos = pkgname.rfind('_'); + pos = pkgname.find('_'); if(pos != string::npos) - pkgname = string(pkgname, 0, pos); + pkgname = pkgname.substr(0, pos); // find the package versin and source package name pkgCache::PkgIterator Pkg = Cache.FindPkg(pkgname); diff --git a/debian/changelog b/debian/changelog index fbee91ee2..8dbe214ea 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +apt (0.7.6ubuntu3) gutsy; urgency=low + + * apt-pkg/deb/dpkgpm.cc: + - fix packagename extraction when writting apport reports + + -- + apt (0.7.6ubuntu2) gutsy; urgency=low * doc/examples/sources.list: