Commit 326895c3 authored by Luca Giambonini's avatar Luca Giambonini

Apply a filter from the pkgs list and remove and .sig references

parent 674a856f
......@@ -247,6 +247,10 @@ def create_signature(filetosign):
def do_add_pkg(options, dbname, arch, pkgs):
"""add a pkg(s) to the specified repository"""
status_start("[SERVER] add package(s)")
# skip signatures and keep only the packages
pkgs = [i for i in pkgs if not ".sig" in i ]
for pkg in pkgs:
msg("adding this pkg: %s" % pkg)
......@@ -257,7 +261,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 if not '.sig' in pkg ])
call(["repo-add", "-n", dbpath + PACMAN_DB_EXT] + [ os.path.join(CHAKRA_REPO, dbname, arch, pkg) for pkg in pkgs ])
for pkg in pkgs:
setchown(dbname, os.path.join(CHAKRA_REPO, dbname, arch, pkg))
......@@ -273,7 +277,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 if not '.sig' in pkg ])
call(["akabei-create-db", "add", dbpath + AKABEI_DB_EXT] + [ os.path.join(CHAKRA_REPO, dbname, arch, pkg) for pkg in pkgs ])
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