xbps-src: verify_rundeps: also overwrite pkgver on automatic revbumps.
This commit is contained in:
parent
6fe5680fa6
commit
d52c103915
1 changed files with 3 additions and 2 deletions
|
@ -134,9 +134,8 @@ verify_rundeps()
|
||||||
Add_dependency run ${_rdep}
|
Add_dependency run ${_rdep}
|
||||||
|
|
||||||
fi
|
fi
|
||||||
unset rdep _rdep rdepcnt _rev
|
unset rdep _rdep rdepcnt
|
||||||
done
|
done
|
||||||
unset revbumped
|
|
||||||
#
|
#
|
||||||
# If pkg uses any SONAME not known, error out.
|
# If pkg uses any SONAME not known, error out.
|
||||||
#
|
#
|
||||||
|
@ -194,12 +193,14 @@ verify_rundeps()
|
||||||
readonly newrev=$((${_rev#revision=} + 1))
|
readonly newrev=$((${_rev#revision=} + 1))
|
||||||
sed -i "s/^revision=.*$/revision=${newrev}/" $tmplf
|
sed -i "s/^revision=.*$/revision=${newrev}/" $tmplf
|
||||||
export revision=${newrev}
|
export revision=${newrev}
|
||||||
|
export pkgver="${pkgname}-${version}_${revision}"
|
||||||
revbumped=1
|
revbumped=1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ -z "$revbumped" ]; then
|
if [ -z "$revbumped" ]; then
|
||||||
sed -i "/^short_desc=.*$/irevision=1" $tmplf
|
sed -i "/^short_desc=.*$/irevision=1" $tmplf
|
||||||
export revision=1
|
export revision=1
|
||||||
|
export pkgver="${pkgname}-${version}_${revision}"
|
||||||
revbumped=1
|
revbumped=1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue