[Blends-commit] [Git][blends-team/blends][experimental] blends.py: Handle versionized provides

Ole Streicher gitlab at salsa.debian.org
Thu Apr 12 14:33:46 UTC 2018


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/blends-commit/attachments/20180412/8d056356/attachment.html>


More information about the Blends-commit mailing list