[Blends-commit] [Git][blends-team/blends][experimental] 2 commits: blends.py: escape backslashes in sql query

Ole Streicher gitlab at salsa.debian.org
Fri Apr 13 07:28:45 UTC 2018


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


Commits:
af3096a3 by Ole Streicher at 2018-04-13T09:27:57+02:00
blends.py: escape backslashes in sql query

- - - - -
76f535f5 by Ole Streicher at 2018-04-13T09:28:39+02:00
blend-gen-control: help output fix

- - - - -


2 changed files:

- blends.py
- devtools/blend-gen-control


Changes:

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


=====================================
devtools/blend-gen-control
=====================================
--- a/devtools/blend-gen-control
+++ b/devtools/blend-gen-control
@@ -133,4 +133,4 @@ if upgraded_tasks:
     else:
         print('Warning: {} tasks use the old format {}'
               .format(len(upgraded_tasks), upgraded_tasks[0].format_version))
-        print('Please consider upgrading the task files with the `-U` flag.')
+        print('Please consider upgrading the task files with the `-F` flag.')



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

---
View it on GitLab: https://salsa.debian.org/blends-team/blends/compare/1c01f7f777a6b3a7b6c78c5579aea068acfd09f4...76f535f5b8b4f278d67dd4bd2ead606e270cc6b3
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/20180413/bdd4012e/attachment-0001.html>


More information about the Blends-commit mailing list