Prefer createrepo_c over createrepo

pull/34/head
Marek Marczykowski-Górecki 4 years ago
parent 688f165839
commit d831bb2248
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

@ -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

@ -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

@ -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
}

Loading…
Cancel
Save