// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: apt-cdrom.cc,v 1.28 1999/07/12 02:59:36 jgg Exp $
+// $Id: apt-cdrom.cc,v 1.31 1999/08/25 02:45:01 jgg Exp $
/* ######################################################################
APT CDROM - Tool for handling APT's CDROM database.
/* 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) == 0)
{
List.push_back(CD);
// Grok it
string cType;
string URI;
- char *C = Buffer;
+ const char *C = Buffer;
if (ParseQuoteWord(C,cType) == false ||
ParseQuoteWord(C,URI) == false)
{