From 15f6f93981dc586f17552c57ce355862f844c526 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Thu, 14 Sep 2006 20:01:56 +0000 Subject: [PATCH] smart-selection.mk: Add target -channels.txt-replace (untested) --- make/smart-selection.mk | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/make/smart-selection.mk b/make/smart-selection.mk index 23c425e1..144c3dc6 100644 --- a/make/smart-selection.mk +++ b/make/smart-selection.mk @@ -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