чување 215fbc260b2771f2e2334846724b725567b45965
родитељ 8189aceae18dd47a8e524258dc86655427f42483
Аутор: Страхиња Радић <contact@strahinja.org>
Датум: Thu, 4 Aug 2022 11:35:46 +0200
Add /* for -prune
Signed-off-by: Страхиња Радић <contact@strahinja.org>
Diffstat:
измењених датотека: 4, додавања: 4(+), брисања: 4(-)
diff --git a/lib/build.mk b/lib/build.mk
@@ -1,7 +1,7 @@
<$mkpklib/defaults.mk
build-package:V:
- recentver=$(find ${SRCBASEDIR} -type d -prune -name "${PKGBASE}-*" | \
+ recentver=$(find ${SRCBASEDIR}/* -type d -prune -name "${PKGBASE}-*" | \
sed 's,\([^0-9]\+[^-]-\)\+\([0-9].*\),\2,' | recent)
if [ -z "${recentver}" ]; then
printf "Directory %s does not exist (try fetch?)" \
diff --git a/lib/install.mk b/lib/install.mk
@@ -1,7 +1,7 @@
<$mkpklib/defaults.mk
install-package:QV:
- recentver=$(find ${PKGDIR} -type f -prune -name "${PKGBASE}-*" | \
+ recentver=$(find ${PKGDIR}/* -type f -prune -name "${PKGBASE}-*" | \
sed 's,\([^0-9]\+[^-]-\)\+\([0-9].*\)\.tar\.xz,\2,' | recent)
if [ -z "${recentver}" ]; then
printf "Cannot find package %s\n" "${PKGBASE}" >&2
diff --git a/lib/listfiles.mk b/lib/listfiles.mk
@@ -1,7 +1,7 @@
<$mkpklib/defaults.mk
listfiles:QV:
- recentver=$(find ${PKGDIR} -type f -prune -name "${PKGBASE}-*" | \
+ recentver=$(find ${PKGDIR}/* -type f -prune -name "${PKGBASE}-*" | \
sed 's,\([^0-9]\+[^-]-\)\+\([0-9].*\)\.tar\.xz,\2,' | recent)
if [ -z "${recentver}" ]; then
printf "Cannot find package %s" "$PKGBASE" >&2
diff --git a/lib/uninstall.mk b/lib/uninstall.mk
@@ -1,7 +1,7 @@
<$mkpklib/defaults.mk
uninstall-package:QV:
- recentver=$(find ${PKGDIR} -type f -prune -name "${PKGBASE}-*" | \
+ recentver=$(find ${PKGDIR}/* -type f -prune -name "${PKGBASE}-*" | \
sed 's,\([^0-9]\+[^-]-\)\+\([0-9].*\)\.tar\.xz,\2,' | recent)
if [ -z "${recentver}" ]; then
printf "Cannot find package %s\n" "${PKGBASE}" >&2