# HG changeset patch # User Pascal Bellard # Date 1449056627 -3600 # Node ID a3c27a443a4da196e8b1e82164c69a75868a1b78 # Parent 97454e15c034ed4a3f3281c869646cd5bd2e74ab modules/get: restore virtual packages support (again) diff -r 97454e15c034 -r a3c27a443a4d modules/get --- a/modules/get Mon Nov 30 02:27:33 2015 +0200 +++ b/modules/get Wed Dec 02 12:43:47 2015 +0100 @@ -304,6 +304,8 @@ return fi done + # the real package name + echo $1 } # Download package file to the cache @@ -321,8 +323,8 @@ for rep in $PRIORITY; do [ ! -f "$rep/packages.info" ] && continue # If found, output string "-:" - line=$(awk -F$'\t' -vpkg="$1" -vvpkg="$(virtual_pkg "$1" "$rep")" \ - '$1==pkg || $1"-"$2==pkg || $1==vpkg || $1"-"$2==vpkg {printf "%s-%s:%s", $1, $2, $9; exit}' "$rep/packages.info") + line=$(awk -F$'\t' -vpkg="$(virtual_pkg "$1" "$rep")" \ + '$1==pkg || $1"-"$2==pkg {printf "%s-%s:%s", $1, $2, $9; exit}' "$rep/packages.info") if [ -n "$line" ]; then namever=${line%:*}; pkgsum=${line#*:} break