Ole Streicher pushed to branch experimental at Debian Blends Team / blends

Commits:
1c01f7f7 by Ole Streicher at 2018-04-12T16:32:35+02:00
blends.py: Handle versionized provides

Since some time, provides may be versionized. They are handled here by
just ignoring them.

- - - - -


1 changed file:

- blends.py


Changes:

=====================================
blends.py
=====================================
--- a/blends.py
+++ b/blends.py
@@ -794,7 +794,9 @@ def uddcache(packages, release, components=['main'], 
**db_args):
         package,
         version,
         architecture,
-        regexp_split_to_table(provides, E',\\s*') AS provides
+        regexp_split_to_table(regexp_replace(provides, 
+                                             E'\\s*\\([^)]*\\)', '', 'g'),
+                              E',\\s*') AS provides
     FROM pkg;
     '''
 



View it on GitLab: 
https://salsa.debian.org/blends-team/blends/commit/1c01f7f777a6b3a7b6c78c5579aea068acfd09f4

---
View it on GitLab: 
https://salsa.debian.org/blends-team/blends/commit/1c01f7f777a6b3a7b6c78c5579aea068acfd09f4
You're receiving this email because of your account on salsa.debian.org.
_______________________________________________
Blends-commit mailing list
Blends-commit@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/blends-commit

Reply via email to