From d44d5144f27e844f7e48f88c0e9c5fa718956d34 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:53:55 +0000 Subject: Fixed apt-cdrom and the control file Author: jgg Date: 1999-05-29 21:49:58 GMT Fixed apt-cdrom and the control file --- cmdline/apt-cdrom.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cmdline') 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 &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; -- cgit v1.2.3-70-g09d2