]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/sourcelist.cc
Full translation for 0.5.4.9 (new, Greek)
[apt.git] / apt-pkg / sourcelist.cc
index 1173098d278e941092716d6b7137c8bc5854c8de..12db63079caaad1e17a7f5565afa827bd5920d8c 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: sourcelist.cc,v 1.23 2002/07/01 21:41:11 jgg Exp $
+// $Id: sourcelist.cc,v 1.24 2002/07/08 04:18:07 jgg Exp $
 /* ######################################################################
 
    List of Sources
@@ -245,7 +245,10 @@ bool pkgSourceList::Read(string File)
       F.getline(Buffer,sizeof(Buffer));
       CurLine++;
       _strtabexpand(Buffer,sizeof(Buffer));
-      
+      if (F.fail() && !F.eof())
+        return _error->Error(_("Line %u too long in source list %s."),
+                             CurLine,File.c_str());
+
       
       char *I;
       for (I = Buffer; *I != 0 && *I != '#'; I++);