Package: libapt-pkg-dev Version: 0.7.6 Severity: wishlist libapt doesn't support the .deb Homepage control field. Support for this field would allow frontends to display and/or use this information. A trivial and entirely untested (but compiling!) patch is attached; I imagine this changes the libapt ABI, but the ABI seems to change on every other upload anyway.
Daniel -- Package-specific info: -- /etc/apt/preferences -- Package: wine Pin: release l=WineHQ APT Repository Pin-Priority: 1000 Package: * Pin: release experimental Pin-Priority: -1 -- (/etc/apt/sources.list present, but not submitted) -- -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.22-2-686 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages apt depends on: ii debian-archive-keyring 2007.07.31 GnuPG archive keys of the Debian a ii libc6 2.6.1-6 GNU C Library: Shared libraries ii libgcc1 1:4.2.2-3 GCC support library ii libstdc++6 4.2.2-3 The GNU Standard C++ Library v3 apt recommends no packages. -- no debconf information
diff -ru apt-0.7.3.orig/apt-pkg/deb/debrecords.cc apt-0.7.3/apt-pkg/deb/debrecords.cc --- apt-0.7.3.orig/apt-pkg/deb/debrecords.cc 2007-10-24 10:02:07.000000000 -0700 +++ apt-0.7.3/apt-pkg/deb/debrecords.cc 2007-10-24 10:03:30.000000000 -0700 @@ -51,6 +51,14 @@ return Section.FindS("Package"); } /*}}}*/ +// RecordParser::Homepage - Return the package homepage /*{{{*/ +// --------------------------------------------------------------------- +/* */ +string debRecordParser::Homepage() +{ + return Section.FindS("Homepage"); +} + /*}}}*/ // RecordParser::MD5Hash - Return the archive hash /*{{{*/ // --------------------------------------------------------------------- /* */ Only in apt-0.7.3/apt-pkg/deb: debrecords.cc~ diff -ru apt-0.7.3.orig/apt-pkg/deb/debrecords.h apt-0.7.3/apt-pkg/deb/debrecords.h --- apt-0.7.3.orig/apt-pkg/deb/debrecords.h 2007-10-24 10:02:07.000000000 -0700 +++ apt-0.7.3/apt-pkg/deb/debrecords.h 2007-10-24 10:02:44.000000000 -0700 @@ -43,6 +43,7 @@ virtual string ShortDesc(); virtual string LongDesc(); virtual string Name(); + virtual string Homepage(); virtual void GetRec(const char *&Start,const char *&Stop); Only in apt-0.7.3/apt-pkg/deb: debrecords.h~ diff -ru apt-0.7.3.orig/apt-pkg/pkgrecords.h apt-0.7.3/apt-pkg/pkgrecords.h --- apt-0.7.3.orig/apt-pkg/pkgrecords.h 2007-10-24 10:02:07.000000000 -0700 +++ apt-0.7.3/apt-pkg/pkgrecords.h 2007-10-24 10:02:30.000000000 -0700 @@ -65,6 +65,7 @@ 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;}; Only in apt-0.7.3/apt-pkg: pkgrecords.h~