summaryrefslogtreecommitdiff
path: root/cmdline/indexcopy.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:55:31 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:55:31 +0000
commit1ae93c94429de697fb17f7067367fbf32fd3b6fc (patch)
treedc02b0f8e2682908655ebf27ee5d9e6796ab84f1 /cmdline/indexcopy.cc
parentd955fe80937173f6e4c609ae58a916b61137583d (diff)
HP-UX fixes
Author: jgg Date: 1999-12-10 23:40:29 GMT HP-UX fixes
Diffstat (limited to 'cmdline/indexcopy.cc')
-rw-r--r--cmdline/indexcopy.cc9
1 files changed, 3 insertions, 6 deletions
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 <unistd.h>
#include <sys/stat.h>
#include <stdio.h>
-#include <wait.h>
/*}}}*/
// IndexCopy::CopyPackages - Copy the package files from the CD /*{{{*/
@@ -103,11 +102,9 @@ bool IndexCopy::CopyPackages(string CDROM,string Name,vector<string> &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);