summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:54:34 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:54:34 +0000
commit458ebc0d035bb21b73e5e2935403dc4d333c82df (patch)
tree5ac3ef87b56fab4a2f91d71a59814a5c09569ea9
parent9d4c8f671af479cba90e1db2f68d9abf9daaa4a4 (diff)
Support compressed package files
Author: jgg Date: 1999-08-12 07:00:55 GMT Support compressed package files
-rw-r--r--cmdline/apt-cdrom.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmdline/apt-cdrom.cc b/cmdline/apt-cdrom.cc
index 3b1b6da82..102519f59 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.29 1999/08/08 03:34:13 jgg Exp $
+// $Id: apt-cdrom.cc,v 1.30 1999/08/12 07:00:55 jgg Exp $
/* ######################################################################
APT CDROM - Tool for handling APT's CDROM database.
@@ -63,7 +63,7 @@ bool FindPackages(string CD,vector<string> &List,vector<string> &SList,
/* Aha! We found some package files. We assume that everything under
this dir is controlled by those package files so we don't look down
anymore */
- if (stat("Packages",&Buf) == 0)
+ if (stat("Packages",&Buf) == 0 || stat("Packages.gz",&Buf))
{
List.push_back(CD);