diff options
author | P. 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) |
commit | ca90c42aad24b6d5a4002689a48b28b14f24ae18 (patch) | |
tree | 9e0dd67a20a43020cbbb2530924dafab94613793 | |
parent | 8dd4fca6f45221a3cbae4b7c9bfbe629615839fe (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: "*"
-rw-r--r-- | lib/package/2.sh | 4 |
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##*/}" |