smart-selection.mk: Add target -channels.txt-replace (untested)

This commit is contained in:
Jan Lindemann 2006-09-14 20:01:56 +00:00 committed by Jan Lindemann
commit 15f6f93981

View file

@ -44,7 +44,8 @@ rpm-install-smart.done:
if ! rpm -q smart >/dev/null 2>&1 ; then \
wget ftp.jannet.de:/pub/packages/linux/$(DISTRIBUTOR)/$(DISTRO_RELEASE)/inst-source/rpm/i686/smart.rpm; \
sudo rpm -U smart.rpm; \
sudo smart update -y; \
sudo smart update; \
sudo smart channel --remove-all; \
fi
touch $@
@ -52,6 +53,10 @@ smart-update.done:
smart update || exit 0
touch $@
%-install: smart-update.done
cat $* | xargs sudo smart install -y
%-packages.txt-install: smart-update.done
cat $*-packages.txt | xargs sudo smart install -y
%-channels.txt-replace: smart-update.done
sudo smart channel --remove-all -y
sudo smart channel --add -y $*-channels.txt