summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:54:55 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:54:55 +0000
commitaaee82939afca3f1c11da87d0c44d7c2b07b4c1d (patch)
treecc7b8f04f87d3ef567d81322edc3b5aa83d4d164 /cmdline
parentf8f410f57e7941a7bf57c5c84b77b2bcd577ac6b (diff)
Fixed for 0 length source files
Author: jgg Date: 1999-10-18 04:15:24 GMT Fixed for 0 length source files
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-cache.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc
index 5bb9db7cc..8dc56a72b 100644
--- a/cmdline/apt-cache.cc
+++ b/cmdline/apt-cache.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: apt-cache.cc,v 1.39 1999/10/18 03:44:39 jgg Exp $
+// $Id: apt-cache.cc,v 1.40 1999/10/18 04:15:25 jgg Exp $
/* ######################################################################
apt-cache - Manages the cache files
@@ -613,6 +613,8 @@ bool ShowSrcPackage(CommandLine &CmdL)
for (const char **I = CmdL.FileList + 1; *I != 0; I++)
{
+ SrcRecs.Restart();
+
pkgSrcRecords::Parser *Parse;
while ((Parse = SrcRecs.Find(*I,false)) != 0)
cout << Parse->AsStr();