diff options
author | Britney Fransen <brfransen@gmail.com> | 2022-11-21 05:58:05 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2022-11-21 05:58:05 (GMT) |
commit | ebc4b78c66d1315d7a1a3412b74554de30ec4ddd (patch) | |
tree | 5ff6253365cf5ce7eb82575013979ddc44ae4074 /linhes/linhes-dev/mp.py | |
parent | 613c9a2d97a26a8f04aef9f511c26a8d65c3cc03 (diff) | |
download | linhes_pkgbuild-ebc4b78c66d1315d7a1a3412b74554de30ec4ddd.zip linhes_pkgbuild-ebc4b78c66d1315d7a1a3412b74554de30ec4ddd.tar.gz linhes_pkgbuild-ebc4b78c66d1315d7a1a3412b74554de30ec4ddd.tar.bz2 |
linhes-dev: mp.py remove old symlinks
packages.x86_64: add linhes-system
motd: add linhes message
Diffstat (limited to 'linhes/linhes-dev/mp.py')
-rwxr-xr-x | linhes/linhes-dev/mp.py | 12 |
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") |