mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
smart-selection.mk: Add target smart-config
- Fix abort on adding channel list - Add target smart-config - Fix handling of [rpm-sys] channel in smart channel list creation
This commit is contained in:
parent
a4d52d808b
commit
53038b1d06
1 changed files with 9 additions and 3 deletions
|
|
@ -20,9 +20,10 @@ distclean: clean
|
|||
upload: upload.done
|
||||
install-smart: rpm-install-smart.done
|
||||
commit: selection.done channels.done
|
||||
cvs add $(SELECTION) $(CHANNEL_LIST)
|
||||
cvs add $(SELECTION) $(CHANNEL_LIST) || exit 0
|
||||
cvs commit -m "o updated by target $@"
|
||||
smart-update: smart-update.done
|
||||
smart-config: smart-config.done
|
||||
|
||||
# === rules
|
||||
selection.done: $(MODDIR)/make/smart-selection.mk
|
||||
|
|
@ -33,7 +34,7 @@ selection.done: $(MODDIR)/make/smart-selection.mk
|
|||
touch $@
|
||||
|
||||
channels.done: $(MODDIR)/make/smart-selection.mk
|
||||
smart channel --show | sed '/\[rpm-sys\]/,/\[/ d' > $(CHANNEL_LIST)
|
||||
smart channel --show | sed '/\[rpm-sys\]/,+3 d' > $(CHANNEL_LIST)
|
||||
touch $@
|
||||
|
||||
upload.done: selection.done
|
||||
|
|
@ -57,8 +58,13 @@ smart-update.done:
|
|||
%-packages.txt-install: smart-update.done
|
||||
cat $*-packages.txt | xargs sudo smart install -y
|
||||
|
||||
%-channels.txt-replace: smart-update.done
|
||||
%-channels.txt-replace:
|
||||
sudo smart channel -y --remove-all
|
||||
sudo smart channel -y --add $*-channels.txt
|
||||
sudo smart update || exit 0
|
||||
|
||||
smart-config.done:
|
||||
sudo smart config --set rpm-check-signatures=false
|
||||
sudo smart config --set remove-packages=false
|
||||
touch $@
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue