From 1ae93c94429de697fb17f7067367fbf32fd3b6fc Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:55:31 +0000 Subject: HP-UX fixes Author: jgg Date: 1999-12-10 23:40:29 GMT HP-UX fixes --- cmdline/indexcopy.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'cmdline') diff --git a/cmdline/indexcopy.cc b/cmdline/indexcopy.cc index 2585fc1da..c8bbd754d 100644 --- a/cmdline/indexcopy.cc +++ b/cmdline/indexcopy.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: indexcopy.cc,v 1.2 1999/09/03 05:46:48 jgg Exp $ +// $Id: indexcopy.cc,v 1.3 1999/12/10 23:40:29 jgg Exp $ /* ###################################################################### Index Copying - Aid for copying and verifying the index files @@ -23,7 +23,6 @@ #include #include #include -#include /*}}}*/ // IndexCopy::CopyPackages - Copy the package files from the CD /*{{{*/ @@ -103,11 +102,9 @@ bool IndexCopy::CopyPackages(string CDROM,string Name,vector &List) } // Wait for gzip to finish - int Status; - if (waitpid(Process,&Status,0) != Process) - return _error->Errno("wait","Waiting for gzip failed"); - if (WIFEXITED(Status) == 0 || WEXITSTATUS(Status) != 0) + if (ExecWait(Process,_config->Find("Dir::bin::gzip","gzip").c_str(),false) == false) return _error->Error("gzip failed, perhaps the disk is full."); + Pkg.Seek(0); } pkgTagFile Parser(Pkg); -- cgit v1.2.3