diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/include.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/include.sh b/lib/include.sh index 1bc999e..0621fc6 100644 --- a/lib/include.sh +++ b/lib/include.sh @@ -65,8 +65,8 @@ include_changes() # suite. # Set the reference count for the (source, binver, arch, plat) tuple to # 1. - script='s/[0-9][0-9]* [^_]*_\([^_]*\)_\([^_]*\)_\([^_]*\)\.opk' - script="${script}"'/\1 \2 \3/p' + script='s/[0-9][0-9]* [^ ][^ ]* [^_]*_\([^_]*\)_\([^_]*\)_\([^_]*\)' + script="${script}"'\.opk/\1 \2 \3/p' bvaps="$(printf '%s\n' "${_include_files}" | sed -n "${script}" | \ LC_COLLATE='C' sort | uniq)" while read -r binver arch plat; do @@ -102,11 +102,10 @@ include_changes() fi # Include each binary package. - while read -r size file; do + while read -r size sect file; do if [ "x${file##[ ]}" = 'x' ]; then continue fi - sect='base' IFS='_' read -r pkg binver arch plat <<-EOF ${file%.opk} EOF |