summaryrefslogtreecommitdiffstats
path: root/build_tools
diff options
context:
space:
mode:
Diffstat (limited to 'build_tools')
-rwxr-xr-xbuild_tools/bin/mp.py62
-rw-r--r--[-rwxr-xr-x]build_tools/larch8/larch0/profiles/linhes-local-disk-testing-i686/addedpacks0
-rwxr-xr-xbuild_tools/larch8/larch0/profiles/linhes-local-mirror-stable-i686/addedpacks1
-rw-r--r--[-rwxr-xr-x]build_tools/larch8/larch0/profiles/linhes-local-mirror-testing-i686/addedpacks0
-rwxr-xr-xbuild_tools/larch8/larch0/profiles/linhes-remote-stable-i686/addedpacks1
-rw-r--r--[-rwxr-xr-x]build_tools/larch8/larch0/profiles/linhes-remote-testing-i686/addedpacks0
6 files changed, 42 insertions, 22 deletions
diff --git a/build_tools/bin/mp.py b/build_tools/bin/mp.py
index 0fc4cfb..dfdec94 100755
--- a/build_tools/bin/mp.py
+++ b/build_tools/bin/mp.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python2
-# Version 0.7
+# Version 0.7.3
import os
import sys
@@ -175,9 +175,9 @@ def bump_pkg():
print "Bumped " + pkgname + " release to " + str(new_pkgrel)
if pkgbase:
- SRCPKG = pkgbase + "-" + pkgver + "-" + str(new_pkgrel) + ".src.tar.gz"
+ SRCPKG = pkgbase + "-" + epoch + pkgver + "-" + str(new_pkgrel) + ".src.tar.gz"
else:
- SRCPKG = pkgname + "-" + pkgver + "-" + str(new_pkgrel) + ".src.tar.gz"
+ SRCPKG = pkglist[0] + "-" + epoch + pkgver + "-" + str(new_pkgrel) + ".src.tar.gz"
print "Source package will be: ",SRCPKG
def find_repo():
@@ -243,13 +243,15 @@ def update_repo():
print "Package file:",TOTALPKG
# Remove old package(s) from local copy
- pv = re.compile('[\d]+[\w.]+')
+ oldpkgcheck = re.compile( i + "-" + epoch + '(pkgver|[\d.]+)' + "-" + '(?!pkgrel)' )
dirlist = os.listdir(DOCROOT)
for n in dirlist:
if n.startswith(i):
- num = len(i) + 1
- print "Bytes to seek ahead:",num
- OLDPKG = glob.glob(i + "-" + pv.search(n,num).group() + "-[0-9]*.pkg.tar.?z")
+ if not oldpkgcheck.search(n):
+ print n,"does not match"
+ continue
+ else:
+ OLDPKG = glob.glob(oldpkgcheck.search(n).group() + "*.pkg.tar.?z")
print "OLDPKG =",OLDPKG
if OLDPKG:
for DELPKG in OLDPKG:
@@ -273,28 +275,49 @@ def update_repo():
def update_src_pkg():
print "---------------------------------SRC------------------------------"
- print "SRCPKG:",SRCPKG
- OLDSRCPKG = []
+
+ OLDSRCPKG=""
os.chdir(SRCPKGHOME + "/" + REPO)
+
+ print
+ print "INFO: Changed working dir to",SRCPKGHOME + "/" + REPO
+ print
+
+ if pkgbase:
+ SRCPKG = pkgbase + "-" + epoch + pkgver + "-" + pkgrel + ".src.tar.gz"
+ i = pkgbase
+ else:
+ SRCPKG = pkglist[0] + "-" + epoch + pkgver + "-" + pkgrel + ".src.tar.gz"
+ i = pkglist[0]
+ print "Source package will be:",SRCPKG
+
+ if not SRCPKGHOME + "/" + REPO + "/" + SRCPKG:
+ print "ERROR in function update_repo: Couldn't find the new package",SRCPKGHOME + "/" + REPO + "/" + SRCPKG
+ sys.exit(2)
+
+ print "SRCPKG:",SRCPKG
+ oldpkgcheck = re.compile( i + "-" + epoch + '(pkgver|[\d.]+)' + "-" + '(?!pkgrel)' )
dirlist = os.listdir(SRCPKGHOME + "/" + REPO)
- #pv = re.compile('[\d]+[.]*[\d]*[.]*[\d]*[.]*[\d]*[.]*[\d]*')
- pv = re.compile('[\d]+[\w.]+')
if pkgbase:
# Remove old src package(s) from local copy
if "--rmold" in cli_list:
for n in dirlist:
if n.startswith(pkgbase):
- num = len(pkgbase) + 1
- print "Bytes to seek ahead:",num
- OLDSRCPKG = glob.glob(pkgbase + "-" + pv.search(n,num).group() + "-*.src.tar.?z")
+ if not oldpkgcheck.search(n):
+ print n,"does not match"
+ continue
+ else:
+ OLDSRCPKG = glob.glob(oldpkgcheck.search(n).group() + "*.src.tar.gz")
else:
# Remove old src package(s) from local copy
if "--rmold" in cli_list:
for n in dirlist:
if n.startswith(pkgname):
- num = len(pkgname) + 1
- print "Bytes to seek ahead:",num
- OLDSRCPKG = glob.glob(pkgname + "-" + pv.search(n,num).group() + "-*.src.tar.?z")
+ if not oldpkgcheck.search(n):
+ print n,"does not match"
+ continue
+ else:
+ OLDSRCPKG = glob.glob(oldpkgcheck.search(n).group() + "*.src.tar.gz")
if OLDSRCPKG:
print "OLDSRCPKG =",OLDSRCPKG
for DELSRCPKG in OLDSRCPKG:
@@ -397,16 +420,15 @@ def config_file():
elif item == "epoch":
if value:
epoch = "%s:" %value
- print "epoch" , epoch
+ print "epoch:" , epoch
elif item == "arch":
arch = value
print "arch:",arch
-
if pkgbase:
SRCPKG = pkgbase + "-" + epoch + pkgver + "-" + pkgrel + ".src.tar.gz"
else:
- SRCPKG = pkgname + "-" + epoch + pkgver + "-" + pkgrel + ".src.tar.gz"
+ SRCPKG = pkglist[0] + "-" + epoch + pkgver + "-" + pkgrel + ".src.tar.gz"
print "Source package will be:",SRCPKG
# Get needed makepkg.conf variables
diff --git a/build_tools/larch8/larch0/profiles/linhes-local-disk-testing-i686/addedpacks b/build_tools/larch8/larch0/profiles/linhes-local-disk-testing-i686/addedpacks
index 1652f72..1652f72 100755..100644
--- a/build_tools/larch8/larch0/profiles/linhes-local-disk-testing-i686/addedpacks
+++ b/build_tools/larch8/larch0/profiles/linhes-local-disk-testing-i686/addedpacks
diff --git a/build_tools/larch8/larch0/profiles/linhes-local-mirror-stable-i686/addedpacks b/build_tools/larch8/larch0/profiles/linhes-local-mirror-stable-i686/addedpacks
index f03d321..e2cece2 100755
--- a/build_tools/larch8/larch0/profiles/linhes-local-mirror-stable-i686/addedpacks
+++ b/build_tools/larch8/larch0/profiles/linhes-local-mirror-stable-i686/addedpacks
@@ -213,7 +213,6 @@ mplayer-wrapper
#atl1e
linux-firmware
-hd3000firmware
larch-live
mkinitcpio-busybox
diff --git a/build_tools/larch8/larch0/profiles/linhes-local-mirror-testing-i686/addedpacks b/build_tools/larch8/larch0/profiles/linhes-local-mirror-testing-i686/addedpacks
index 1652f72..1652f72 100755..100644
--- a/build_tools/larch8/larch0/profiles/linhes-local-mirror-testing-i686/addedpacks
+++ b/build_tools/larch8/larch0/profiles/linhes-local-mirror-testing-i686/addedpacks
diff --git a/build_tools/larch8/larch0/profiles/linhes-remote-stable-i686/addedpacks b/build_tools/larch8/larch0/profiles/linhes-remote-stable-i686/addedpacks
index f03d321..e2cece2 100755
--- a/build_tools/larch8/larch0/profiles/linhes-remote-stable-i686/addedpacks
+++ b/build_tools/larch8/larch0/profiles/linhes-remote-stable-i686/addedpacks
@@ -213,7 +213,6 @@ mplayer-wrapper
#atl1e
linux-firmware
-hd3000firmware
larch-live
mkinitcpio-busybox
diff --git a/build_tools/larch8/larch0/profiles/linhes-remote-testing-i686/addedpacks b/build_tools/larch8/larch0/profiles/linhes-remote-testing-i686/addedpacks
index 1652f72..1652f72 100755..100644
--- a/build_tools/larch8/larch0/profiles/linhes-remote-testing-i686/addedpacks
+++ b/build_tools/larch8/larch0/profiles/linhes-remote-testing-i686/addedpacks