summaryrefslogtreecommitdiffstats
path: root/build_tools/bin
diff options
context:
space:
mode:
Diffstat (limited to 'build_tools/bin')
-rwxr-xr-xbuild_tools/bin/mpv2.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/build_tools/bin/mpv2.py b/build_tools/bin/mpv2.py
index bcbbfec..b21ed29 100755
--- a/build_tools/bin/mpv2.py
+++ b/build_tools/bin/mpv2.py
@@ -546,7 +546,9 @@ class Packagefile(object):
print " Package file:",self.TOTALPKG
# Remove old package(s) from local copy
- oldpkgcheck = re.compile( i + "-" + self.epoch + '(pkgver|[\d.]+)' + "-" + '(?!pkgrel)' )
+ #print i + "-" + self.epoch + '(pkgver|[\d.]+)' + "-" + '(?!pkgrel)'
+ oldpkgcheck = re.compile( re.escape(i) + "-" + self.epoch + '(pkgver|[\d.]+)' + "-" + '(?!pkgrel)' )
+
dirlist = os.listdir(self.DOCROOT)
for n in dirlist:
if n.startswith(i):
@@ -588,7 +590,7 @@ class Packagefile(object):
sys.exit(2)
i = self.pkglist[0]
- oldpkgcheck = re.compile( i + "-" + self.epoch + '(pkgver|[\d.]+)' + "-" + '(?!pkgrel)' )
+ oldpkgcheck = re.compile( re.escape(i) + "-" + self.epoch + '(pkgver|[\d.]+)' + "-" + '(?!pkgrel)' )
dirlist = os.listdir(SRCPKGHOME + "/" )
if self.pkgbase:
# Remove old src package(s) from local copy