Skip to content

Commit

Permalink
Merge pull request #615 from jirislaby/master
Browse files Browse the repository at this point in the history
templates: lxc-opensuse, use rpm to determine build version
  • Loading branch information
stgraber committed Aug 5, 2015
2 parents 061ed04 + fe89217 commit f20b99d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/lxc-opensuse.in
Expand Up @@ -422,7 +422,8 @@ if [ -z "$path" ]; then
fi

if grep -q Harlequin /etc/os-release || grep -q Tumbleweed /etc/os-release ; then
if [[ "$(zypper info build|awk -F "[- ]" '/Version/ {print $2}')" -lt "20141120" ]] ; then
BVER=`rpm -q --qf '%{version}\n' build`
if [ $? -ne 0 -o "$BVER" -lt "20141120" ]; then
echo "Building openSUSE containers with your version of the build package is broken. Please install the update to version 20141120 or newer."
exit 1
fi
Expand Down

0 comments on commit f20b99d

Please sign in to comment.