mirror of
https://gitlab.com/CinnamonSlackBuilds/csb.git
synced 2024-12-26 21:59:28 +01:00
Merge pull request #1 from 01micko/patch1
Update build-cinnamon.sh to upgrade according to the BUILD number
This commit is contained in:
commit
876e35d910
1 changed files with 4 additions and 1 deletions
|
@ -92,6 +92,9 @@ for dir in \
|
|||
# Get the version
|
||||
version=$(cat ${package}.SlackBuild | grep "VERSION:" | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
||||
|
||||
# Get the build
|
||||
build=$(cat ${package}.SlackBuild | grep "BUILD:" | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
||||
|
||||
# Check for duplicate sources
|
||||
sourcefile="$(ls -l $CSBROOT/$dir/${package}-*.tar.?z* | wc -l)"
|
||||
if [ $sourcefile -gt 1 ]; then
|
||||
|
@ -104,7 +107,7 @@ for dir in \
|
|||
# The real build starts here
|
||||
sh ${package}.SlackBuild || exit 1
|
||||
if [ "$INST" = "1" ]; then
|
||||
PACKAGE="${package}-$version-*.txz"
|
||||
PACKAGE="${package}-$version-${build}*.txz"
|
||||
if [ -f $TMP/$PACKAGE ]; then
|
||||
upgradepkg --install-new --reinstall $TMP/$PACKAGE
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue