summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-11-16 23:13:14 (EST)
committer P. J. McDermott <pjm@nac.net>2012-11-16 23:16:54 (EST)
commitca90c42aad24b6d5a4002689a48b28b14f24ae18 (patch)
tree9e0dd67a20a43020cbbb2530924dafab94613793 /lib
parent8dd4fca6f45221a3cbae4b7c9bfbe629615839fe (diff)
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: "*"
Diffstat (limited to 'lib')
-rw-r--r--lib/package/2.sh4
1 files changed, 4 insertions, 0 deletions
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##*/}"