[Blends-commit] r1799 - blends/trunk/webtools
Debian Pure Blends Subversion Commit
noreply at alioth.debian.org
Wed Aug 19 10:07:49 UTC 2009
Author: tille
Date: Wed Aug 19 10:07:49 2009
New Revision: 1799
URL: http://svn.debian.org/viewsvn/blends?rev=1799&view=rev
Log:
s/^\d:// for version numbers for more user friendly display
Modified:
blends/trunk/webtools/blendstasktools.py
Modified: blends/trunk/webtools/blendstasktools.py
URL: http://svn.debian.org/viewsvn/blends/blends/trunk/webtools/blendstasktools.py?rev=1799&view=diff&r1=1799&r2=1798&p1=blends/trunk/webtools/blendstasktools.py&p2=blends/trunk/webtools/blendstasktools.py
==============================================================================
--- blends/trunk/webtools/blendstasktools.py (original)
+++ blends/trunk/webtools/blendstasktools.py Wed Aug 19 10:07:49 2009
@@ -252,7 +252,7 @@
SELECT package FROM packages WHERE provides = $1 GROUP BY package;"""
curs.execute(query)
-# Obtain more detailed information about packages that might provide adependency
+# Obtain more detailed information about packages that might provide a dependency
#query = """PREPARE query_provides_version_release (text) AS
# SELECT package, version, release FROM packages WHERE provides = $1
# GROUP BY version, package, release ORDER BY version DESC;"""
@@ -270,7 +270,7 @@
# Obtain available versions including the architectures where this version is available
query = """PREPARE pkg_versions_arch (text, text) AS
- SELECT release, version, array_to_string(array_accum(architecture),',') AS architectures FROM
+ SELECT release, regexp_replace(version, '^[0-9]:', '') AS version, array_to_string(array_accum(architecture),',') AS architectures FROM
( SELECT architecture, version,
release || CASE WHEN char_length(substring(distribution from '-.*')) > 0 THEN substring(distribution from '-.*') ELSE '' END AS release FROM packages
WHERE package = $1 AND component = $2
More information about the Blends-commit
mailing list