Prefer createrepo_c over createrepo

This commit is contained in:
Marek Marczykowski-Górecki 2020-01-13 23:21:31 +01:00
parent 688f165839
commit d831bb2248
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
3 changed files with 5 additions and 3 deletions

View File

@ -30,7 +30,7 @@ INSTALLER_KICKSTART ?= $(INSTALLER_DIR)/conf/qubes-kickstart.cfg
ISO_LIVEUSB ?= 0
LIVE_KICKSTART ?= $(INSTALLER_DIR)/conf/liveusb.ks
CREATEREPO := /usr/bin/createrepo
CREATEREPO := $(shell which createrepo_c createrepo 2>/dev/null |head -1)
PUNGI := /usr/bin/pungi-gather
PUNGI_OPTS := --arch=x86_64 --greedy=none

View File

@ -1,8 +1,9 @@
createrepo=$(which createrepo_c createrepo 2>/dev/null |head -1)
for repo in dom0-updates installer qubes-dom0 ; do
echo "---> Cleaning up repo: $repo..."
rm -f $repo/rpm/*.rpm
rm -f $repo/repodata/*
createrepo -q $repo
$createrepo -q $repo
done

View File

@ -1,5 +1,6 @@
#!/bin/sh
createrepo=$(which createrepo_c createrepo 2>/dev/null |head -1)
# $1 -- path to rpm dir
check_repo()
@ -17,7 +18,7 @@ check_repo()
update_repo()
{
createrepo -q -g ../../conf/comps-qubes.xml --update $1
$createrepo -q -g ../../conf/comps-qubes.xml --update $1
}