__package_pkg_openbsd: support the empty flavor

Adds support for specifying an empty flavor by passing --flavor "".
This commit is contained in:
Philippe Grégoire 2017-08-26 10:59:04 -04:00
parent 7584e3c465
commit d4f34a3f40
No known key found for this signature in database
GPG key ID: A14AA6DA679C2177

View file

@ -52,6 +52,8 @@ elif [ -n "$version" ]; then
pkgid="$name-$version" pkgid="$name-$version"
elif [ -n "$flavor" ]; then elif [ -n "$flavor" ]; then
pkgid="$name--$flavor" pkgid="$name--$flavor"
elif [ -f "$__object/parameter/flavor" ]; then
pkgid="$name--"
else else
pkgid="$name" pkgid="$name"
fi fi