]> git.saurik.com Git - apt.git/commitdiff
* apt-pkg/deb/dpkgpm.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Mon, 6 Aug 2007 14:48:55 +0000 (16:48 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Mon, 6 Aug 2007 14:48:55 +0000 (16:48 +0200)
  - fix packagename extraction when writting apport reports

apt-pkg/deb/dpkgpm.cc
debian/changelog

index a65f6eb0a08008f9e6c2af18b92a51fdf4cca066..dad8da9edc5befdb915e2e117360b1201533913d 100644 (file)
@@ -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);
index fbee91ee2a630e66d5d2a7f0bac4ffd27b0ddea0..8dbe214ea6ecaef464f7844b82bfaff06cadf9d8 100644 (file)
@@ -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: