diff options
Diffstat (limited to 'mk/scripts/remove_todo')
-rwxr-xr-x | mk/scripts/remove_todo | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/scripts/remove_todo b/mk/scripts/remove_todo index 75ca0f32375..41d18cb020d 100755 --- a/mk/scripts/remove_todo +++ b/mk/scripts/remove_todo @@ -23,6 +23,7 @@ TODO=$1 PKGBASE=$(echo $2 | sed "s/^py[0-9][0-9]-/py-/") PKGVERSION=$3 TMPFILE="$TODO.$$" +PKG_ADMIN="${PKG_ADMIN:-pkg_admin}" MATCH=$(grep -n '^[ ]*o '"$PKGBASE"'-[0-9]' "$TODO" | sed 's/^\([^:]*:\)[ ]*o /\1/;s/ .*//') @@ -35,7 +36,7 @@ fi LINE=$(echo "$MATCH" | sed 's/:.*//') FOUNDPKG=$(echo "$MATCH" | sed -e "s/^[^:]*://") -if pkg_admin pmatch "$PKGBASE"\<="$PKGVERSION" "$FOUNDPKG"; then +if ${PKG_ADMIN} pmatch "$PKGBASE"\<="$PKGVERSION" "$FOUNDPKG"; then echo Removing "$FOUNDPKG" from TODO sed < "$TODO" "$LINE"d > "$TMPFILE" mv "$TMPFILE" "$TODO" |