From aaee82939afca3f1c11da87d0c44d7c2b07b4c1d Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:54:55 +0000 Subject: Fixed for 0 length source files Author: jgg Date: 1999-10-18 04:15:24 GMT Fixed for 0 length source files --- cmdline/apt-cache.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cmdline') 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(); -- cgit v1.2.3