local/bin/package-lister: Track Guix version and report uncommitted files

master
Pierre Neidhardt 2018-06-26 10:31:50 +02:00
parent 44d13db545
commit 9ae7d1b44a
1 changed files with 6 additions and 0 deletions

View File

@ -27,4 +27,10 @@ if command -v guix >/dev/null 2>&1; then
EOF
guix package -I | awk '{printf("\"%s", $1); if($3!="out") {printf("%s", ":" $3)}; print "\""}' | LC_ALL=C sort >>"$PKG_ROOT/guix"
echo "))" >>"$PKG_ROOT/guix"
guix --version >"$PKG_ROOT/guix-version"
fi
echo >&2 "* Uncommitted files:"
git -C "$PKG_ROOT" diff --name-only .
git -C "$PKG_ROOT" diff --cached --name-only .