Your message dated Fri, 30 Jan 2009 13:32:03 +0000
with message-id <[email protected]>
and subject line Bug#513466: fixed in whohas 0.22-3
has caused the Debian Bug report #513466,
regarding whohas: Please manage also Mandriva
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
513466: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=513466
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: whohas
Version: 0.22-1
Severity: wishlist

Hello,

Please, could you consider the management of Mandriva packages in your
tool ?

A patch fixing this bug is attached to this bug report.

Regards,
Sylvestre

diff -ur whohas-0.22.orig/program/whohas whohas-0.22/program/whohas
--- whohas-0.22.orig/program/whohas	2009-01-04 19:54:05.000000000 +0100
+++ whohas-0.22/program/whohas	2009-01-29 11:32:35.000000000 +0100
@@ -49,6 +49,7 @@
 my $fink_bool		= 1;
 my $freebsd_bool	= 1;
 my $macports_bool	= 1;
+my $mandriva_bool	= 1;
 my $netbsd_bool		= 1;
 my $openbsd_bool	= 1;
 my $opensuse_bool	= 1;
@@ -69,6 +70,7 @@
 			$fink_bool		= 0;
 			$freebsd_bool		= 0;
 			$macports_bool		= 0;
+			$mandriva_bool		= 0;
 			$netbsd_bool		= 0;
 			$openbsd_bool		= 0;
 			$opensuse_bool		= 0;
@@ -84,6 +86,7 @@
 				} elsif (	$parts[$a] =~ /fink/i) {	$fink_bool		= 1;
 				} elsif (	$parts[$a] =~ /freebsd/i) {	$freebsd_bool		= 1;
 				} elsif (	$parts[$a] =~ /macports/i) {	$macports_bool		= 1;
+				} elsif (	$parts[$a] =~ /mandriva/i) {	$mandriva_bool		= 1;
 				} elsif (	$parts[$a] =~ /netbsd/i) {	$netbsd_bool		= 1;
 				} elsif (	$parts[$a] =~ /openbsd/i) {	$openbsd_bool		= 1;
 				} elsif (	$parts[$a] =~ /opensuse/i) {	$opensuse_bool		= 1;
@@ -121,6 +124,9 @@
 		if ($macports_bool == 1) {
 			$thrs[$here++] = threads->new(\&macports,	$ARGV[0]);
 		}
+		if ($mandriva_bool == 1) {
+			$thrs[$here++] = threads->new(\&mandriva,	$ARGV[0]);
+		}
 		if ($netbsd_bool == 1) {
 #			$thrs[$here++] = threads->new(\&netbsd,		$ARGV[0]); #this worked, but was slow
 			$thrs[$here++] = threads->new(\&netbsd_pkgsrc,	$ARGV[0]);
@@ -174,6 +180,9 @@
 	if ($macports_bool == 1) {
 		&macports(	$ARGV[1]);
 	}
+	if ($mandriva_bool == 1) {
+		&mandriva(	$ARGV[1]);
+	}
 	if ($netbsd_bool == 1) {
 #		&netbsd(	$ARGV[1]);
 		&netbsd_pkgsrc(	$ARGV[1]);
@@ -375,6 +384,34 @@
 }
 
 
+sub mandriva {
+	my $baseurl = "http://sophie.zarb.org";;
+	my @names;
+	my @versions;
+	my @dates;
+	my @sizes;
+	my @repos;
+	my @urls;
+	my @lines = split /\n/, &fetchdoc($baseurl."/rpmfind?distrib=Mandriva&st=rpmname&search=".$_[0]);
+	for (my $i = 70; $i < @lines; $i++) {
+		if ($lines[$i] =~ /<p><a href\=\"http:\/\/sophie.zarb.org\/viewrpm\//) {
+			my @parts = $lines[$i] =~ /\"([^\"]+)\">(\w+)-([0-9-.]+)(\D+)?(?:([0-9\.]+)\.)?(\w+)?\.rpm<\/a>/;
+
+				push @urls,     $parts[0];
+				push @names,    $parts[1];
+				push @versions, $parts[2];
+				push @repos,    $parts[3];
+				push @sizes, "";
+				push @dates, "";
+		}
+	}
+	for (my $i = 0; $i < @repos; $i++) {
+		&pretty_print($cols,@columns,"Mandriva",$names[$i],$versions[$i],$sizes[$i],$dates[$i],$repos[$i],$urls[$i]);
+	}
+	return ();
+}
+
+
 sub fink {
 	my $baseurl = "http://fink.sourceforge.net/pdb/";;
 	my @names;
diff -ur whohas-0.22.orig/usr/share/man/de/man1/whohas.1 whohas-0.22/usr/share/man/de/man1/whohas.1
--- whohas-0.22.orig/usr/share/man/de/man1/whohas.1	2009-01-05 00:00:15.000000000 +0100
+++ whohas-0.22/usr/share/man/de/man1/whohas.1	2009-01-29 12:09:44.000000000 +0100
@@ -7,7 +7,7 @@
 whohas [\fI\-\-no\-threads\fP] [\fI\-d Dist1[,Dist2[,Dist3 etc.]]\fP] \fIpkgname\fP
 .SH "BESCHREIBUNG"
 .LP 
-whohas ist ein Kommandozeilenprogramm, das verf�gbare Pakete von Arch, Debian, Fedora, Gentoo, openSUSE, Slackware (and linuxpackages.net), Source Mage, Ubuntu, FreeBSD, NetBSD, OpenBSD, Fink und MacPorts findet, die einem Suchbegriff entsprechen.
+whohas ist ein Kommandozeilenprogramm, das verf�gbare Pakete von Arch, Debian, Fedora, Gentoo, openSUSE, Slackware (and linuxpackages.net), Source Mage, Ubuntu, FreeBSD, NetBSD, OpenBSD, Fink, Mandriva und MacPorts findet, die einem Suchbegriff entsprechen.
 .SH "OPTIONEN"
 .LP 
 .TP 
@@ -15,7 +15,7 @@
 Keine Threads bei der Ausf�hrung, Repositories werden seriell nacheinander befragt und jeweils die Antwort abgewartet (sehr viel langsamer)
 .TP 
 \fB\-d Dist1[,Dist2[,Dist3 etc.]]\fR
-Durchsucht nur aufgelistete Distributionen. G�ltige Angaben f�r Dist1 etc. sind "archlinux", "debian", "fedora", "fink", "freebsd", "gentoo", "macports", "netbsd", "openbsd", "opensuse", "slackware", "sourcemage", und "ubuntu".
+Durchsucht nur aufgelistete Distributionen. G�ltige Angaben f�r Dist1 etc. sind "archlinux", "debian", "fedora", "fink", "freebsd", "gentoo", "macports", "mandriva", "netbsd", "openbsd", "opensuse", "slackware", "sourcemage", und "ubuntu".
 .TP 
 \fBpkgname\fR
 Suchbegriff
diff -ur whohas-0.22.orig/usr/share/man/man1/whohas.1 whohas-0.22/usr/share/man/man1/whohas.1
--- whohas-0.22.orig/usr/share/man/man1/whohas.1	2009-01-04 23:59:23.000000000 +0100
+++ whohas-0.22/usr/share/man/man1/whohas.1	2009-01-29 12:09:28.000000000 +0100
@@ -7,7 +7,7 @@
 whohas [\fI\-\-no\-threads\fP] [\fI\-d Dist1[,Dist2[,Dist3 etc.]]\fP] \fIpkgname\fP
 .SH "DESCRIPTION"
 .LP 
-whohas is a command line tool to query package lists from the Arch, Debian, Fedora, Gentoo, openSUSE, Slackware (and linuxpackages.net), Source Mage, Ubuntu, FreeBSD, NetBSD, OpenBSD, Fink and MacPorts distributions.
+whohas is a command line tool to query package lists from the Arch, Debian, Fedora, Gentoo, openSUSE, Slackware (and linuxpackages.net), Source Mage, Ubuntu, FreeBSD, NetBSD, OpenBSD, Fink, Mandriva and MacPorts distributions.
 .SH "OPTIONS"
 .LP 
 .TP 
@@ -15,7 +15,7 @@
 Don't use multiple threads to query package lists (will be much slower)
 .TP 
 \fB\-d Dist1[,Dist2[,Dist3 etc.]]\fR
-Queries only for packages for the listed distributions. Recognised values for Dist1, Dist2, etc. are "archlinux", "debian", "fedora", "fink", "freebsd", "gentoo", "macports", "netbsd", "openbsd", "opensuse", "slackware", "sourcemage", and "ubuntu".
+Queries only for packages for the listed distributions. Recognised values for Dist1, Dist2, etc. are "archlinux", "debian", "fedora", "fink", "freebsd", "gentoo", "macports", "mandriva", "netbsd", "openbsd", "opensuse", "slackware", "sourcemage", and "ubuntu".
 .TP 
 \fBpkgname\fR
 Package name to query for

--- End Message ---
--- Begin Message ---
Source: whohas
Source-Version: 0.22-3

We believe that the bug you reported is fixed in the latest version of
whohas, which is due to be installed in the Debian FTP archive:

whohas_0.22-3.diff.gz
  to pool/main/w/whohas/whohas_0.22-3.diff.gz
whohas_0.22-3.dsc
  to pool/main/w/whohas/whohas_0.22-3.dsc
whohas_0.22-3_all.deb
  to pool/main/w/whohas/whohas_0.22-3_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jonathan Wiltshire <[email protected]> (supplier of updated whohas 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 30 Jan 2009 12:16:07 +0000
Source: whohas
Binary: whohas
Architecture: source all
Version: 0.22-3
Distribution: unstable
Urgency: low
Maintainer: Jonathan Wiltshire <[email protected]>
Changed-By: Jonathan Wiltshire <[email protected]>
Description: 
 whohas     - query multiple distributions' package archives
Closes: 510020 510524 513466 513473 513476
Changes: 
 whohas (0.22-3) unstable; urgency=low
 .
   * Removed README.Debian (no longer necessary)
   * Patch to include Mandriva repositories (Sylvestre Ledru)
     (Closes: #513466)
   * Patch to handle parameters with Getopt::Long (Steve Cotton)
     (Closes: #513473)
   * Patch to handle the --help parameter properly (Steve Cotton)
     (Closes: #513476)
   * Patch to trim whitespace from package names
   * Patch which adds a --strict option to only output exact package
     matches (Closes: #510020, #510524)
   * Updated supported list to include Mandriva in the long description
Checksums-Sha1: 
 12316409540a56853f47ba8bc0ae17665cf40b15 1135 whohas_0.22-3.dsc
 977df52baac97ac309ca5784cb88ce5846bf30ee 16619 whohas_0.22-3.diff.gz
 1a8176aff5f57aad194414052e6804db6140bfa4 188470 whohas_0.22-3_all.deb
Checksums-Sha256: 
 2dab88945ef582ba6764281bd1fb021b00a43dda8547a063131212c999ab64b7 1135 
whohas_0.22-3.dsc
 367e17f66542c36233a20483ea93605bdabda53de2f92d23580ab909bc18172c 16619 
whohas_0.22-3.diff.gz
 c35d64447f1ff7c237bafd191bddf110616ddc1e2a6ac5dceebb7f218059ea63 188470 
whohas_0.22-3_all.deb
Files: 
 7148cb14e3c22dc213b51919d00e5a82 1135 utils extra whohas_0.22-3.dsc
 4d6f939129e34151f980660ec46616da 16619 utils extra whohas_0.22-3.diff.gz
 75bdc26d2f419cbd8e9d8a6401c1221b 188470 utils extra whohas_0.22-3_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkmDAIUACgkQJATtOmqqpWkxegCeNiWdnBpucfc9ZMepFttHLvDR
duQAoKysTKAi6k9hZHwHrlaUyTzaK3NI
=6rKo
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to