Commit 14aa81c3 authored by Felix Exner's avatar Felix Exner Committed by Oskar Roesler
Browse files

Delete old pkg and move package to repo before adding it

parent ab3deeb8
......@@ -56,7 +56,10 @@ class Packages(Routines):
else:
raise FileNotFoundError("No PKBUILD existing: ", self.pkgrepo_path)
try:
subprocess.run([REPO_ADD_BIN, 'localhost.db.tar.zst'] + glob.glob(os.path.join(self.repos_path, '*.pkg.tar.*')),
self.del_old_pkg()
self.mvpkg()
subprocess.run([REPO_ADD_BIN, 'localhost.db.tar.zst']
+ glob.glob("{0}/*{1}-?.*-?-*.pkg.tar.*".format(self.localrepo_path, self.package)),
check=True, cwd=self.localrepo_path)
except subprocess.CalledProcessError as e:
print(e.stdout, file=sys.stderr)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment