scripts/update: dont update feeds by default

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

View File

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