[Debian-l10n-commits] r2707 - in /ddtp-web: Changelog ddt.cgi

nekral-guest at users.alioth.debian.org nekral-guest at users.alioth.debian.org
Mon Jul 25 13:13:53 UTC 2011


Author: nekral-guest
Date: Mon Jul 25 13:13:52 2011
New Revision: 2707

URL: http://svn.debian.org/wsvn/?sc=1&rev=2707
Log:
	* ddt.cgi: Use the package_version_tb table instead of version_tb
	table to display the package and version instead of just the
	version.

Modified:
    ddtp-web/Changelog
    ddtp-web/ddt.cgi

Modified: ddtp-web/Changelog
URL: http://svn.debian.org/wsvn/ddtp-web/Changelog?rev=2707&op=diff
==============================================================================
--- ddtp-web/Changelog (original)
+++ ddtp-web/Changelog Mon Jul 25 13:13:52 2011
@@ -10,3 +10,6 @@
 	* sql_layout.txt: Add table suggestion_tb.
 	* Packages2db.sh: Comment out gaia, lenny and etch
 	* Packages2db.sh: Added Squeeze and Wheezy
+	* ddt.cgi: Use the package_version_tb table instead of version_tb
+	table to display the package and version instead of just the
+	version.

Modified: ddtp-web/ddt.cgi
URL: http://svn.debian.org/wsvn/ddtp-web/ddt.cgi?rev=2707&op=diff
==============================================================================
--- ddtp-web/ddt.cgi (original)
+++ ddtp-web/ddt.cgi Mon Jul 25 13:13:52 2011
@@ -97,12 +97,13 @@
 
 	my @versions=();
 
-	my $sth = $dbh->prepare("SELECT version FROM version_tb WHERE description_id=?");
+	my $sth = $dbh->prepare("SELECT package,version FROM package_version_tb WHERE description_id=?");
 	$sth->execute($desc_id);
 
+	my $package;
 	my $version;
-	while(($version) = $sth->fetchrow_array) {
-		push @versions,$version;
+	while(($package,$version) = $sth->fetchrow_array) {
+		push @versions,"$package ($version)";
 	}
 	return (@versions);
 }




More information about the Debian-l10n-commits mailing list