consistency_check.sh: remove dirname usage
This commit is contained in:
parent
974f2805f2
commit
372ae10639
|
@ -65,7 +65,8 @@ consistency_check_smart () {
|
||||||
consistency_check() {
|
consistency_check() {
|
||||||
local pkg= pkgname=
|
local pkg= pkgname=
|
||||||
for pkg in "$XBPS_SRCPKGDIR"/*/template; do
|
for pkg in "$XBPS_SRCPKGDIR"/*/template; do
|
||||||
XBPS_TARGET_PKG=$(basename $(dirname $pkg))
|
pkg=${pkg%*/}/
|
||||||
|
XBPS_TARGET_PKG=${pkg##*/}
|
||||||
(
|
(
|
||||||
read_pkg
|
read_pkg
|
||||||
[ "$depends" ] && printf "%s $pkgname depends\n" $depends
|
[ "$depends" ] && printf "%s $pkgname depends\n" $depends
|
||||||
|
|
Loading…
Reference in New Issue