mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
httpTwoLevelsUpdater: fix variable default value
This commit is contained in:
parent
0b9c39e819
commit
a15e083372
@ -15,5 +15,5 @@
|
|||||||
|
|
||||||
genericUpdater {
|
genericUpdater {
|
||||||
inherit pname version attrPath ignoredVersions rev-prefix odd-unstable patchlevel-unstable;
|
inherit pname version attrPath ignoredVersions rev-prefix odd-unstable patchlevel-unstable;
|
||||||
versionLister = "${common-updater-scripts}/bin/list-archive-two-levels-versions ${lib.optionalString (url != null) "--url=${url}"}";
|
versionLister = "${common-updater-scripts}/bin/list-archive-two-levels-versions ${lib.optionalString (url != null) "--url=${lib.escapeShellArg url}"}";
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
pname="" # package name
|
pname="" # package name
|
||||||
attr_path="" # package attribute path
|
attr_path="" # package attribute path
|
||||||
url="" # directory list url
|
url="" # directory listing url
|
||||||
file="" # file for writing debugging information
|
file="" # file for writing debugging information
|
||||||
|
|
||||||
while (( $# > 0 )); do
|
while (( $# > 0 )); do
|
||||||
@ -31,7 +31,7 @@ while (( $# > 0 )); do
|
|||||||
done
|
done
|
||||||
|
|
||||||
if [[ -z "$pname" ]]; then
|
if [[ -z "$pname" ]]; then
|
||||||
pname="$UPDATE_NIX_NAME"
|
pname="$UPDATE_NIX_PNAME"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "$attr_path" ]]; then
|
if [[ -z "$attr_path" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user