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

repo-add should add packages from current package only

Otherwise we try to re-add each package every time yielding in a lot of warnings
parent 6a0ccc4c
...@@ -56,7 +56,7 @@ class Packages(Routines): ...@@ -56,7 +56,7 @@ class Packages(Routines):
else: else:
raise FileNotFoundError("No PKBUILD existing: ", self.pkgrepo_path) raise FileNotFoundError("No PKBUILD existing: ", self.pkgrepo_path)
try: try:
subprocess.run([REPO_ADD_BIN, 'localhost.db.tar.zst'] + glob.glob(os.path.join(self.localrepo_path, '*.pkg.tar.*')), subprocess.run([REPO_ADD_BIN, 'localhost.db.tar.zst'] + glob.glob(os.path.join(self.repos_path, '*.pkg.tar.*')),
check=True, cwd=self.localrepo_path) check=True, cwd=self.localrepo_path)
except subprocess.CalledProcessError as e: except subprocess.CalledProcessError as e:
print(e.stdout, file=sys.stderr) 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