mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-10 03:50:33 +03:00
add a BUILD tag at the end of the VERSION appearing in the title to the info_item menu
This commit is contained in:
parent
64495f7c87
commit
aeccdfee75
@ -500,19 +500,20 @@ else
|
|||||||
IPACKAGE=""
|
IPACKAGE=""
|
||||||
fi
|
fi
|
||||||
if [ "$IPACKAGE" = "" ]; then
|
if [ "$IPACKAGE" = "" ]; then
|
||||||
JPACKAGE=""
|
JPACKAGE=""
|
||||||
else
|
else
|
||||||
JPACKAGE="Install $IPACKAGE"
|
JPACKAGE="Install $IPACKAGE"
|
||||||
fi
|
fi
|
||||||
KPACKAGE="$(basename $(ls -1t /var/log/packages/* | grep -hZm1 $APP))"
|
KPACKAGE="$(basename $(ls -1t /var/log/packages/* | grep -hZm1 $APP))"
|
||||||
if [ "$KPACKAGE" = "" ]; then
|
if [ "$KPACKAGE" = "" ]; then
|
||||||
LPACKAGE="$APP (Not Installed)"
|
LPACKAGE="$APP (Not Installed)"
|
||||||
else
|
else
|
||||||
LPACKAGE="$APP (Installed: $KPACKAGE)"
|
LPACKAGE="$APP (Installed: $KPACKAGE)"
|
||||||
fi
|
fi
|
||||||
CATEGORY="$(cat $TMP/sbopkg_category_selection)"
|
CATEGORY="$(cat $TMP/sbopkg_category_selection)"
|
||||||
RVERSION=$(grep VERSION $LOCALREPO/$SLACKVER/$CATEGORY/$APP/$APP.info | cut -d= -f2 | sed s/\"//g)
|
RVERSION=$(grep VERSION $LOCALREPO/$SLACKVER/$CATEGORY/$APP/$APP.info | cut -d= -f2 | sed s/\"//g)
|
||||||
dialog --default-item "$U" --title "$APP ($RVERSION)" \
|
RBUILD=$(egrep -m1 "^BUILD" $LOCALREPO/$SLACKVER/$CATEGORY/$APP/$APP.SlackBuild | sed -e 's/^.*[=-]//;s/\"//;s/[ #}\t].*$//g;s/\"//g')
|
||||||
|
dialog --default-item "$U" --title "$APP ($RVERSION-$RBUILD)" \
|
||||||
--backtitle "$LPACKAGE" --extra-button --extra-label "Back" --cancel-label \
|
--backtitle "$LPACKAGE" --extra-button --extra-label "Back" --cancel-label \
|
||||||
"Main Menu" --menu \
|
"Main Menu" --menu \
|
||||||
"Please choose an item or press <Back> to go back or press \
|
"Please choose an item or press <Back> to go back or press \
|
||||||
|
Loading…
Reference in New Issue
Block a user