From ca90c42aad24b6d5a4002689a48b28b14f24ae18 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 16 Nov 2012 23:13:14 -0500 Subject: Verify existence of *.pkg/control in pkg listing. This fixes warnings like the following when there are no binary package metadata directories: opkbuild: Warning: Bad binary package name: "*" --- (limited to 'lib/package') diff --git a/lib/package/2.sh b/lib/package/2.sh index b9882be..5b8b0bb 100644 --- a/lib/package/2.sh +++ b/lib/package/2.sh @@ -55,6 +55,10 @@ _ob_get_binary_packages_2() for _obgbp2_pkg_control in "${_OB_PACKAGE_DIR}/"*'.pkg/control'; do + if [ ! -f "${_obgbp2_pkg_control}" ]; then + continue + fi + _obgbp2_pkg_control="${_obgbp2_pkg_control%.pkg/control}" _obgbp2_pkg_control="${_obgbp2_pkg_control##*/}" -- cgit v0.9.1