mirror of
https://github.com/ryantm/nixpkgs-update.git
synced 2024-12-17 08:21:44 +03:00
don't edit derivations with multiple fetchers, or with "DO NOT EDIT" in them
This commit is contained in:
parent
8e0f388962
commit
383c07a66a
6
up.sh
6
up.sh
@ -76,6 +76,12 @@ function error_cleanup {
|
||||
}
|
||||
trap error_cleanup ERR
|
||||
|
||||
(( $(grep -c "fetchurl" "$DERIVATION_FILE") + $(grep -c "fetchgit" "$DERIVATION_FILE") + $(grep -c "fetchFromGitHub" "$DERIVATION_FILE") == 1 )) || error_exit "More than one fetcher in $DERIVATION_FILE"
|
||||
|
||||
if grep -q "DO NOT EDIT" "$DERIVATION_FILE"
|
||||
then
|
||||
error_exit "Derivation file says not to edit it."
|
||||
fi
|
||||
|
||||
# Skip packages that have special builders
|
||||
if grep -q "buildGoPackage" "$DERIVATION_FILE"
|
||||
|
Loading…
Reference in New Issue
Block a user