[Collab-qa-commits] r2390 - udd/web/cgi-bin
Lucas Nussbaum
lucas at alioth.debian.org
Sun Jun 24 10:52:58 UTC 2012
Author: lucas
Date: 2012-06-24 10:52:58 +0000 (Sun, 24 Jun 2012)
New Revision: 2390
Modified:
udd/web/cgi-bin/sources_rebuild.cgi
Log:
better handling of architectures
Modified: udd/web/cgi-bin/sources_rebuild.cgi
===================================================================
--- udd/web/cgi-bin/sources_rebuild.cgi 2012-06-24 10:06:48 UTC (rev 2389)
+++ udd/web/cgi-bin/sources_rebuild.cgi 2012-06-24 10:52:58 UTC (rev 2390)
@@ -39,13 +39,13 @@
dbh = DBI::connect('DBI:Pg:dbname=udd;port=5441;host=localhost', 'guest')
sth = dbh.prepare("select source, version, architecture
-from sources_uniq where distribution='debian' and release='sid' and component='main' and (architecture = 'all' or architecture = 'any' or architecture ~ 'amd64') order by source")
+from sources_uniq where distribution='debian' and release='sid' and component='main' and (architecture ~ 'all' or architecture ~ 'any' or architecture ~ 'amd64') order by source")
sth.execute
while row = sth.fetch do
- if row['architecture'] =~ /amd64/
+ if row['architecture'] =~ /amd64/ or row['architecture'] =~ /any/
arch = 'any'
else
- arch = row['architecture']
+ arch = 'all'
end
pkg = row['source']
if $archs[pkg].nil? or $archs[pkg].include?(CURARCH)
More information about the Collab-qa-commits
mailing list