scripts/update: dont update feeds by default

This commit is contained in:
Colin 2024-06-14 09:47:00 +00:00
parent 26a4f20f6c
commit ba0524d193

View File

@ -50,6 +50,12 @@ getPkgs() {
updateOnePkg() {
local attrPath="$1"
if [[ "$attrPath" =~ ^"$ignore" ]]; then
warn "ignoring $attrPath"
return
fi
local updateScript="$(nix eval --raw -f . $attrPath.passthru.updateScript --apply 'builtins.concatStringsSep "'" "'"')"
if [ -z "$updateScript" ]; then
warn "don't know how to update '$attrPath'"
@ -69,6 +75,7 @@ updateOnePkg() {
}
dryRun=
ignore=
toplevelsToUpdate=()
verbose=
parseArgs() {
@ -91,6 +98,7 @@ parseArgs() {
esac
done
if [ "${#toplevelsToUpdate[@]}" -eq 0 ]; then
ignore=sane.feeds
toplevelsToUpdate=(sane)
fi
}