Explorar o código

* Applied patch from Daniel Burrows <dburrows@debian.org> to add support
for the Homepage field, closes: #447970.

Otavio Salvador %!s(int64=18) %!d(string=hai) anos
pai
achega
f27b4a70b2
Modificáronse 4 ficheiros con 12 adicións e 0 borrados
  1. 8 0
      apt-pkg/deb/debrecords.cc
  2. 1 0
      apt-pkg/deb/debrecords.h
  3. 1 0
      apt-pkg/pkgrecords.h
  4. 2 0
      debian/changelog

+ 8 - 0
apt-pkg/deb/debrecords.cc

@@ -51,6 +51,14 @@ string debRecordParser::Name()
    return Section.FindS("Package");
 }
 									/*}}}*/
+// RecordParser::Homepage - Return the package homepage		       	/*{{{*/
+// ---------------------------------------------------------------------
+/* */
+string debRecordParser::Homepage()
+{
+   return Section.FindS("Homepage");
+}
+									/*}}}*/
 // RecordParser::MD5Hash - Return the archive hash			/*{{{*/
 // ---------------------------------------------------------------------
 /* */

+ 1 - 0
apt-pkg/deb/debrecords.h

@@ -44,6 +44,7 @@ class debRecordParser : public pkgRecords::Parser
    virtual string ShortDesc();
    virtual string LongDesc();
    virtual string Name();
+   virtual string Homepage();
 
    virtual void GetRec(const char *&Start,const char *&Stop);
    

+ 1 - 0
apt-pkg/pkgrecords.h

@@ -66,6 +66,7 @@ class pkgRecords::Parser
    virtual string ShortDesc() {return string();};
    virtual string LongDesc() {return string();};
    virtual string Name() {return string();};
+   virtual string Homepage() {return string();}
    
    // The record in binary form
    virtual void GetRec(const char *&Start,const char *&Stop) {Start = Stop = 0;};

+ 2 - 0
debian/changelog

@@ -2,6 +2,8 @@ apt (0.7.8) UNRELEASED; urgency=low
 
   * Applied patch from Daniel Leidert <daniel.leidert@wgdd.de> to fix
     APT::Acquire::Translation "none" support, closes: #437523.
+  * Applied patch from Daniel Burrows <dburrows@debian.org> to add support
+    for the Homepage field, closes: #447970.
 
  -- Otavio Salvador <otavio@ossystems.com.br>  Thu, 25 Oct 2007 09:24:56 -0200