diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:53:55 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:53:55 +0000 |
commit | d44d5144f27e844f7e48f88c0e9c5fa718956d34 (patch) | |
tree | 3a9af0f5f201c2e0cd9e60117fd1ef2b43d1bfa5 /cmdline | |
parent | 6b8f78a12276e75d0da3578301d4da378963185f (diff) | |
download | apt-d44d5144f27e844f7e48f88c0e9c5fa718956d34.tar.gz |
Fixed apt-cdrom and the control file
Author: jgg
Date: 1999-05-29 21:49:58 GMT
Fixed apt-cdrom and the control file
Diffstat (limited to 'cmdline')
-rw-r--r-- | cmdline/apt-cdrom.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmdline/apt-cdrom.cc b/cmdline/apt-cdrom.cc index 49c7909dc..dd45e9b48 100644 --- a/cmdline/apt-cdrom.cc +++ b/cmdline/apt-cdrom.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: apt-cdrom.cc,v 1.24 1999/05/29 04:59:52 jgg Exp $ +// $Id: apt-cdrom.cc,v 1.25 1999/05/29 21:49:58 jgg Exp $ /* ###################################################################### APT CDROM - Tool for handling APT's CDROM database. @@ -468,7 +468,8 @@ bool CopyPackages(string CDROM,string Name,vector<string> &List) // Get the size struct stat Buf; - if (stat(string(CDROM + Prefix + File).c_str(),&Buf) != 0) + if (stat(string(CDROM + Prefix + File).c_str(),&Buf) != 0 || + Buf.st_size == 0) { // Attempt to fix busted symlink support for one instance string OrigFile = File; |