update setup, install slpkg

This commit is contained in:
Dimitris Zlatanidis 2015-01-29 03:42:31 +02:00
parent 0d3ad8ce70
commit f4f5aa794e
2 changed files with 4 additions and 2 deletions

View file

@ -90,7 +90,8 @@ if "install" in sys.argv:
]
if not os.path.exists(_m.conf_path):
os.system("mkdir -p {0}".format(_m.conf_path))
for conf in conf_file:
shutil.copy2(conf_file[0], _m.conf_path + conf_file[0])
for conf in conf_file[1:]:
filename = conf.split("/")[-1]
print("Installing '{0}' file".format(filename))
if os.path.isfile(_m.conf_path + filename):

View file

@ -79,7 +79,8 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mkdir -p $PKG/etc/slpkg
# install configurations files
CONFIGS="slpkg.conf blacklist slackware-mirrors custom-repositories"
install -D -m0644 conf/${PRGNAM}.conf $PKG/etc/slpkg/${PRGNAM}.conf
CONFIGS="blacklist slackware-mirrors custom-repositories"
for file in $CONFIGS; do
install -D -m0644 conf/$file $PKG/etc/slpkg/${file}.new
done