summaryrefslogtreecommitdiffstats
path: root/linhes/linhes-dev/mp.py
diff options
context:
space:
mode:
Diffstat (limited to 'linhes/linhes-dev/mp.py')
-rwxr-xr-xlinhes/linhes-dev/mp.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/linhes/linhes-dev/mp.py b/linhes/linhes-dev/mp.py
index 7f4c317..33832d0 100755
--- a/linhes/linhes-dev/mp.py
+++ b/linhes/linhes-dev/mp.py
@@ -370,9 +370,15 @@ class Packagefile(object):
p.close()
def make_package(self):
- #if self.arch == 'any':
- # self.CARCH = 'any'
#creates both binary and source package
+ print(" Removing symlinks...")
+ pkglinks = glob.glob(self.pkgname + "*.pkg.tar.*")
+ print(" Old Symlinks:",pkglinks)
+ if pkglinks:
+ for DELLNK in pkglinks:
+ if os.path.islink(DELLNK):
+ print(" Deleting old symlink:",DELLNK)
+ os.unlink(DELLNK)
print("- Making package...")
retcode = subprocess.call(["sudo", "ccm", "s"])
if retcode != 0:
@@ -451,8 +457,6 @@ class Packagefile(object):
os.symlink(self.DOCROOT + "/" + self.TOTALPKG, self.mydir + "/" + self.TOTALPKG)
print(" Adding package to repo")
subprocess.call(["repo-add", self.DOCROOT+ "/" + self.REPO + ".db.tar.gz", self.DOCROOT + "/" + self.TOTALPKG])
- #print(" Updating pacman database")
- #subprocess.call(["pacman","-Syyyyy" ])
def update_srcrepo(self):
print("- Updating source file repository")