Commit 2c264530 authored by Luca Giambonini's avatar Luca Giambonini

fix: do not try to add .sig files in the database

that will remove the warning generated by pacman/akabei and speed up the overall process (less packages to analyze)
parent c8b1c595
......@@ -257,7 +257,7 @@ def do_add_pkg(options, dbname, arch, pkgs):
with mydb.lock(dbpath + ".joblock"):
# pacman
#call(["repo-add", "-n", dbpath + PACMAN_DB_EXT] + pkgs) #ToDo sign the pkg
call(["repo-add", "-n", dbpath + PACMAN_DB_EXT] + [ os.path.join(CHAKRA_REPO, dbname, arch, pkg) for pkg in pkgs ])
call(["repo-add", "-n", dbpath + PACMAN_DB_EXT] + [ os.path.join(CHAKRA_REPO, dbname, arch, pkg) for pkg in pkgs if not '.sig' in pkg ])
for pkg in pkgs:
setchown(dbname, os.path.join(CHAKRA_REPO, dbname, arch, pkg))
......@@ -273,7 +273,7 @@ def do_add_pkg(options, dbname, arch, pkgs):
setchown(dbname, dbpath + PACMAN_DB_EXT)
# akabei
call(["akabei-create-db", "add", dbpath + AKABEI_DB_EXT] + [ os.path.join(CHAKRA_REPO, dbname, arch, pkg) for pkg in pkgs ])
call(["akabei-create-db", "add", dbpath + AKABEI_DB_EXT] + [ os.path.join(CHAKRA_REPO, dbname, arch, pkg) for pkg in pkgs if not '.sig' in pkg ])
setchown(dbname, dbpath + AKABEI_DB_EXT)
#create_signature(dbpath + AKABEI_DB_EXT)
#setchown(dbname, dbpath + AKABEI_DB_EXT + ".sig")
......
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