Просмотр исходного кода

Added subprocess to segfault error
Author: jgg
Date: 1999-12-12 03:48:36 GMT
Added subprocess to segfault error

Arch Librarian лет назад: 22
Родитель
Сommit
0410b3d54c
2 измененных файлов с 7 добавлено и 5 удалено
  1. 4 4
      apt-pkg/deb/dpkgpm.cc
  2. 3 1
      debian/changelog

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

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
-// $Id: dpkgpm.cc,v 1.15 1999/12/10 06:30:42 jgg Exp $
+// $Id: dpkgpm.cc,v 1.16 1999/12/12 03:48:36 jgg Exp $
 /* ######################################################################
 
    DPKG Package Manager - Provide an interface to dpkg
@@ -381,12 +381,12 @@ bool pkgDPkgPM::Go()
       {
 	 RunScripts("DPkg::Post-Invoke");
 	 if (WIFSIGNALED(Status) != 0 && WTERMSIG(Status) == SIGSEGV)
-	    return _error->Error("Sub-process recieved a segmentation fault.");
+	    return _error->Error("Sub-process %s recieved a segmentation fault.",Args[0]);
 	    
 	 if (WIFEXITED(Status) != 0)
-	    return _error->Error("Sub-process returned an error code (%u)",WEXITSTATUS(Status));
+	    return _error->Error("Sub-process %s returned an error code (%u)",Args[0],WEXITSTATUS(Status));
 	 
-	 return _error->Error("Sub-process exited unexpectedly");
+	 return _error->Error("Sub-process %s exited unexpectedly",Args[0]);
       }      
    }
 

+ 3 - 1
debian/changelog

@@ -1,6 +1,8 @@
 apt (0.3.15.1) unstable; urgency=low
-
+ 
   * Made --no-download work.
+  * Now compiles on OpenBSD, Solaris and HP-UX
+  * Clarify segfault errors
   
  -- Jason Gunthorpe <jgg@debian.org>  Sat,  4 Dec 1999 21:17:24 -0800