]> git.saurik.com Git - apt.git/commitdiff
Changed ie to eg
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:53:20 +0000 (16:53 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:53:20 +0000 (16:53 +0000)
Author: jgg
Date: 1999-03-29 19:28:52 GMT
Changed ie to eg

apt-pkg/deb/debrecords.cc
apt-pkg/deb/debrecords.h
cmdline/apt-cache.cc
cmdline/apt-cdrom.cc
cmdline/apt-config.cc
cmdline/apt-get.cc
test/makefile

index b3f91a8403fc24573ed63d20957610ba24e1e2fc..a2005914d8302ddf6090126fab927852efccf271 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: debrecords.cc,v 1.5 1999/02/22 03:30:06 jgg Exp $
+// $Id: debrecords.cc,v 1.6 1999/03/29 19:28:52 jgg Exp $
 /* ######################################################################
    
    Debian Package Records - Parser for debian package records
@@ -31,24 +31,12 @@ bool debRecordParser::Jump(pkgCache::VerFileIterator const &Ver)
    return Tags.Jump(Section,Ver->Offset);
 }
                                                                        /*}}}*/
-// RecordParser::FindTag - Locate a tag and return a string            /*{{{*/
-// ---------------------------------------------------------------------
-/* */
-string debRecordParser::FindTag(const char *Tag)
-{
-   const char *Start;
-   const char *Stop;
-   if (Section.Find(Tag,Start,Stop) == false)
-      return string();
-   return string(Start,Stop - Start);
-}
-                                                                       /*}}}*/
 // RecordParser::FileName - Return the archive filename on the site    /*{{{*/
 // ---------------------------------------------------------------------
 /* */
 string debRecordParser::FileName()
 {
-   return FindTag("Filename");
+   return Section.FindS("Filename");
 }
                                                                        /*}}}*/
 // RecordParser::MD5Hash - Return the archive hash                     /*{{{*/
@@ -56,7 +44,7 @@ string debRecordParser::FileName()
 /* */
 string debRecordParser::MD5Hash()
 {
-   return FindTag("MD5sum");
+   return Section.FindS("MD5sum");
 }
                                                                        /*}}}*/
 // RecordParser::Maintainer - Return the maintainer email              /*{{{*/
@@ -64,7 +52,7 @@ string debRecordParser::MD5Hash()
 /* */
 string debRecordParser::Maintainer()
 {
-   return FindTag("Maintainer");
+   return Section.FindS("Maintainer");
 }
                                                                        /*}}}*/
 // RecordParser::ShortDesc - Return a 1 line description               /*{{{*/
@@ -72,7 +60,7 @@ string debRecordParser::Maintainer()
 /* */
 string debRecordParser::ShortDesc()
 {
-   string Res = FindTag("Description");
+   string Res = Section.FindS("Description");
    string::size_type Pos = Res.find('\n');
    if (Pos == string::npos)
       return Res;
@@ -84,6 +72,6 @@ string debRecordParser::ShortDesc()
 /* */
 string debRecordParser::LongDesc()
 {
-   return FindTag("Description");
+   return Section.FindS("Description");
 }
                                                                        /*}}}*/
index 0c204492a907f9a4fd781a212024ab9ab3bd7c1c..b91d07092459d0d9d6a8c94622a18966016a17d4 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: debrecords.h,v 1.4 1999/02/22 03:30:06 jgg Exp $
+// $Id: debrecords.h,v 1.5 1999/03/29 19:28:52 jgg Exp $
 /* ######################################################################
    
    Debian Package Records - Parser for debian package records
@@ -27,8 +27,6 @@ class debRecordParser : public pkgRecords::Parser
    pkgTagFile Tags;
    pkgTagSection Section;
 
-   string FindTag(const char *Tag);
-
    protected:
    
    virtual bool Jump(pkgCache::VerFileIterator const &Ver);
index 31247f2058afc8e6d4b3cff314c8c581c74e39b6..75f9f455ea50e1bed454d0cc72d10cd14a8cf4ba 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: apt-cache.cc,v 1.31 1999/03/27 01:30:38 jgg Exp $
+// $Id: apt-cache.cc,v 1.32 1999/03/29 19:28:52 jgg Exp $
 /* ######################################################################
    
    apt-cache - Manages the cache files
@@ -616,7 +616,7 @@ bool ShowHelp(CommandLine &Cmd)
    cout << "  -q   Disable progress indicator." << endl;
    cout << "  -i   Show only important deps for the unmet command." << endl;
    cout << "  -c=? Read this configuration file" << endl;
-   cout << "  -o=? Set an arbitary configuration option, ie -o dir::cache=/tmp" << endl;
+   cout << "  -o=? Set an arbitary configuration option, eg -o dir::cache=/tmp" << endl;
    cout << "See the apt-cache(8) and apt.conf(5) manual pages for more information." << endl;
    return 100;
 }
index 459e4a48d7f037ef5beaa9828ed005c84addb2eb..cd95eafeec93c15e5232245c34401d0e712e7883 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: apt-cdrom.cc,v 1.18 1999/03/27 01:30:38 jgg Exp $
+// $Id: apt-cdrom.cc,v 1.19 1999/03/29 19:28:52 jgg Exp $
 /* ######################################################################
    
    APT CDROM - Tool for handling APT's CDROM database.
@@ -986,7 +986,7 @@ int ShowHelp()
    cout << "  -f   Fast mode, don't check package files" << endl;
    cout << "  -a   Thorough scan mode" << endl;
    cout << "  -c=? Read this configuration file" << endl;
-   cout << "  -o=? Set an arbitary configuration option, ie -o dir::cache=/tmp" << endl;
+   cout << "  -o=? Set an arbitary configuration option, eg -o dir::cache=/tmp" << endl;
    cout << "See fstab(5)" << endl;
    return 100;
 }
index b1b134d97f57e67716adb4646c79a044a75cd69f..3a2a4d9ca38647788cff7c82f5697e77667fac40 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: apt-config.cc,v 1.3 1999/01/30 02:12:53 jgg Exp $
+// $Id: apt-config.cc,v 1.4 1999/03/29 19:28:52 jgg Exp $
 /* ######################################################################
    
    APT Config - Program to manipulate APT configuration files
@@ -60,7 +60,7 @@ int ShowHelp()
    cout << "Options:" << endl;
    cout << "  -h   This help text." << endl;
    cout << "  -c=? Read this configuration file" << endl;
-   cout << "  -o=? Set an arbitary configuration option, ie -o dir::cache=/tmp" << endl;
+   cout << "  -o=? Set an arbitary configuration option, eg -o dir::cache=/tmp" << endl;
    return 100;
 }
                                                                        /*}}}*/
index 73397e8aeab1446f688df3fd0a72cbbaaf4f1254..859f113f1091a1af23f17e5b181394e5750c6b4b 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: apt-get.cc,v 1.47 1999/03/27 03:02:39 jgg Exp $
+// $Id: apt-get.cc,v 1.48 1999/03/29 19:28:52 jgg Exp $
 /* ######################################################################
    
    apt-get - Cover for dpkg
@@ -1122,7 +1122,7 @@ bool ShowHelp(CommandLine &CmdL)
    cout << "  -m  Attempt to continue if archives are unlocatable" << endl;
    cout << "  -u  Show a list of upgraded packages as well" << endl;
    cout << "  -c=? Read this configuration file" << endl;
-   cout << "  -o=? Set an arbitary configuration option, ie -o dir::cache=/tmp" << endl;
+   cout << "  -o=? Set an arbitary configuration option, eg -o dir::cache=/tmp" << endl;
    cout << "See the apt-get(8), sources.list(5) and apt.conf(5) manual" << endl;
    cout << "pages for more information." << endl;
    return 100;
index c12e05f1f26ce39f64c1d379e4e6f2282557489a..eae6230d01222c0a825cb67d45a2e83228a085cf 100644 (file)
@@ -22,3 +22,9 @@ PROGRAM=versiontest
 SLIBS = -lapt-pkg 
 SOURCE = versiontest.cc
 include $(PROGRAM_H)
+
+# Version compare tester
+PROGRAM=srcrfind
+SLIBS = -lapt-pkg 
+SOURCE = srcrfind.cc
+include $(PROGRAM_H)