Skip to content

Commit

Permalink
compare by version
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jul 29, 2015
1 parent 244f744 commit 440862d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions obs-tools/opensuse42_submit.sh
Expand Up @@ -4,8 +4,8 @@ LIST=`osc list openSUSE:Factory | grep -i -e yast2 -e skelcd -e "^libstorage$" -

for i in $LIST; do
# compare if something is new by comparing binaries ( as version is part of rpm output )
OS42=$(osc list -b openSUSE:42 $i -r standard -a x86_64)
FACTORY=$(osc list -b openSUSE:Factory $i -r standard -a x86_64)
OS42=$(osc cat openSUSE:42 $i $i.spec 2>/dev/null | grep "^Version" | sed 's/Version:[[:space:]]*//;s/#.*$//')
OS42=$(osc cat openSUSE:Factory $i $i.spec 2>/dev/null | grep "^Version" | sed 's/Version:[[:space:]]*//;s/#.*$//')
if [ "$OS42" == "$FACTORY" ]; then
continue
fi
Expand Down

0 comments on commit 440862d

Please sign in to comment.