Browse Source

bin/build-packages: only accept versions composed by numbers and dots for python, perl and ruby

Erich Eckner 4 months ago
parent
commit
5a97345035
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      bin/build-packages

+ 3
- 3
bin/build-packages View File

@@ -713,11 +713,11 @@ while [ "${count}" -ne 0 ] && \
713 713
               fi
714 714
               tar -tJf "${pkgfile}" 2>/dev/null | \
715 715
                 sed -n '
716
-                  s,^usr/lib/python\(2\?\)\([^2/][^/]*\)/$,python\1 \1\2,
716
+                  s,^usr/lib/python\(2\?\)\([013-9.][0-9.]*\)/$,python\1 \1\2,
717 717
                   t print
718
-                  s,^usr/lib/perl[^/]\+/\([^/]\+\)/$,perl \1,
718
+                  s,^usr/lib/perl[^/]\+/\([0-9.]\+\)/$,perl \1,
719 719
                   t print
720
-                  s,^usr/lib/ruby/\([^/]\+\)/$,ruby \1,
720
+                  s,^usr/lib/ruby/\([0-9.]\+\)/$,ruby \1,
721 721
                   t print
722 722
                   b
723 723
                   :print