commit 6052a49e7db0b3000b7b38679960212ee10baa44
Author: Jan Rękorajski <bagg...@pld-linux.org>
Date:   Fri Feb 16 22:49:37 2018 +0100

    make global functions global

 PLD_Builder/request.py | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/PLD_Builder/request.py b/PLD_Builder/request.py
index 4c47d06..4757fb7 100644
--- a/PLD_Builder/request.py
+++ b/PLD_Builder/request.py
@@ -176,6 +176,14 @@ class Group:
                 ok = 0
         return ok
 
+# transform php package name (52) to version (5.2)
+def php_name_to_ver(v):
+    return '.'.join(list(v))
+
+# transform php version (5.2) to package name (52)
+def php_ver_to_name(v):
+    return v.replace('.', '')
+
 class Batch:
     DEFAULT_PHP = '5.3'
 
@@ -399,14 +407,6 @@ class Batch:
             "--define '_builddir %{_topdir}/BUILD' "
         return rpmdefs + rpmopts
 
-    # transform php package name (52) to version (5.2)
-    def php_name_to_ver(v):
-        return '.'.join(list(v))
-
-    # transform php version (5.2) to package name (52)
-    def php_ver_to_name(v):
-        return v.replace('.', '')
-
     def php_ignores(self, php_version):
         # available php versions in distro
         php_versions = ['4', '5.2', '5.3', '5.4', '5.5', '5.6', '7.0', '7.1', 
'7.2']
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/6052a49e7db0b3000b7b38679960212ee10baa44

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to