diff options
author | Cole Mickens <cole.mickens@gmail.com> | 2018-11-03 18:02:20 -0700 |
---|---|---|
committer | Cole Mickens <cole.mickens@gmail.com> | 2018-11-03 18:02:20 -0700 |
commit | fbca45b2ba503ae87541390cfc3ac5881fb7ccb3 (patch) | |
tree | d35efc662ab1fa0eca4905750c83067a8fc88e25 /update.sh | |
parent | 4a8d7a5ccd6104366a8d5663040af6352ff580be (diff) |
update.sh: fixup bug
Diffstat (limited to 'update.sh')
-rwxr-xr-x | update.sh | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -15,7 +15,7 @@ function update() { rev="" url="https://api.github.com/repos/${owner}/${repo}/commits?sha=${ref}" - rev="$(git ls-remote "https://github.com/${owner}/${repo}" HEAD | cut -d ' ' -f1)" + rev="$(git ls-remote "https://github.com/${owner}/${repo}" "${ref}" | cut -d ' ' -f1)" [[ -f "./${attr}/metadata.nix" ]] && oldrev="$(nix eval -f "./${attr}/metadata.nix" rev --raw)" if [[ "${oldrev:-}" != "${rev}" ]]; then revdata="$(curl -L --fail "https://api.github.com/repos/${owner}/${repo}/commits/${rev}")" @@ -26,7 +26,7 @@ function update() { echo "${attr}" was updated to "${rev}" "${revdate}" fi - if [[ "${attr}" == nixpkgs* ]]; then return; fi + if [[ "${attr}" == pkgs* ]]; then return; fi commitdate="$(nix eval -f "./${attr}/metadata.nix" revdate --raw)" d="$(date '+%Y-%m-%d %H:%M' --date="${commitdate}")" @@ -34,10 +34,11 @@ function update() { pkgentries=("${pkgentries[@]}" "${txt}") } -update "nixpkgs-nixos-unstable" "nixos" "nixpkgs-channels" "nixos-unstable" -update "nixpkgs-nixos-18.09" "nixos" "nixpkgs-channels" "nixos-18.09" # attr_name repo_owner repo_name repo_rev +update "pkgs-unstable" "nixos" "nixpkgs-channels" "nixos-unstable" +update "pkgs-18.09" "nixos" "nixpkgs-channels" "nixos-18.09" + update "fmt" "fmtlib" "fmt" "master" update "wlroots" "swaywm" "wlroots" "master" |