Codebase list rust-ordered-multimap / 55bdf69
rfs list: check if this is a new version or not Sylvestre Ledru 1 year, 8 months ago
1 changed file(s) with 8 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
2727 if test `grep urgency $(dirname "$i")/changelog|wc -l` -eq 1; then
2828 # If there is only one item in the changelog, mark the package as NEW
2929 echo -e "\e[31mNEW package\e[0m"
30 else
31 # It isn't NEW but I want to know if this is a new upstream release or not
32 LAST_TWO=$(dpkg-parsechangelog -c 2 -l $(dirname "$i")/changelog|grep urgency)
33 LAST=$(echo "$LAST_TWO"|head -1|cut -d\( -f2|cut -d\) -f1|cut -d- -f1)
34 SECOND=$(echo "$LAST_TWO"|tail -1|cut -d\( -f2|cut -d\) -f1|cut -d- -f1)
35 if test $LAST == $SECOND; then
36 echo -e "\e[31mNot a new release\e[0m"
37 fi
3038 fi
3139 # trim the content
3240 content=$(xargs '-d\n' echo -n < "$i")