mirror of
https://github.com/sbopkg/sbopkg
synced 2025-02-06 08:45:52 +01:00
undo accidental commit to src/usr/sbin/sbopkg
This commit is contained in:
parent
b132e73ccd
commit
9641686690
1 changed files with 24 additions and 4 deletions
|
@ -645,8 +645,18 @@ check_for_updates() {
|
||||||
|
|
||||||
# Extract the new package version
|
# Extract the new package version
|
||||||
if [[ ! -z $NEWSB ]]; then
|
if [[ ! -z $NEWSB ]]; then
|
||||||
eval $(echo -n NEW; grep -m1 ^ARCH= $NEWSB)
|
NEWARCH=$(egrep -m1 "^ARCH" $NEWSB | sed '
|
||||||
eval $(echo -n NEW; grep -m1 ^BUILD= $NEWSB)
|
s/\([^\t #]*\)[\t #].*/\1/
|
||||||
|
s/[^=]*=//
|
||||||
|
s/"//g
|
||||||
|
s/\${[^-]*-\(.*\)}/\1/
|
||||||
|
s/\$.*/unknown/
|
||||||
|
')
|
||||||
|
NEWBUILD=$(egrep -m1 "^BUILD" $NEWSB | sed '
|
||||||
|
s/^.*[=-]//
|
||||||
|
s/"//g
|
||||||
|
s/[ #}\t].*$//g
|
||||||
|
')
|
||||||
|
|
||||||
# Step 1 - find the version expression
|
# Step 1 - find the version expression
|
||||||
# This looks for the last instance of $OUTPUT.
|
# This looks for the last instance of $OUTPUT.
|
||||||
|
@ -1048,8 +1058,18 @@ info_item() {
|
||||||
SHORTPATH=$REPO_DIR/$CATEGORY/$APP
|
SHORTPATH=$REPO_DIR/$CATEGORY/$APP
|
||||||
CURVERSION=$(grep VERSION $SHORTPATH/$APP.info |
|
CURVERSION=$(grep VERSION $SHORTPATH/$APP.info |
|
||||||
cut -d= -f2 | sed s/\"//g)
|
cut -d= -f2 | sed s/\"//g)
|
||||||
eval $(echo -n CUR; grep -m1 ^ARCH= $SHORTPATH/$APP.SlackBuild)
|
CURARCH=$(egrep -m1 "^ARCH" $SHORTPATH/$APP.SlackBuild | sed '
|
||||||
eval $(echo -n CUR; grep -m1 ^BUILD= $SHORTPATH/$APP.SlackBuild)
|
s/\([^\t #]*\)[\t #].*/\1/
|
||||||
|
s/[^=]*=//
|
||||||
|
s/"//g
|
||||||
|
s/\${[^-]*-\(.*\)}/\1/
|
||||||
|
s/\$.*/unknown/
|
||||||
|
')
|
||||||
|
CURBUILD=$(egrep -m1 "^BUILD" $SHORTPATH/$APP.SlackBuild | sed '
|
||||||
|
s/^.*[=-]//
|
||||||
|
s/"//g
|
||||||
|
s/[ #}\t].*$//g
|
||||||
|
')
|
||||||
while :; do
|
while :; do
|
||||||
INSTALLEDPACKAGE=$(ls /var/log/packages |
|
INSTALLEDPACKAGE=$(ls /var/log/packages |
|
||||||
egrep "^($APP|$OLDPKG)-[^-]*-[^-]*-[^-]*\$")
|
egrep "^($APP|$OLDPKG)-[^-]*-[^-]*-[^-]*\$")
|
||||||
|
|
Loading…
Add table
Reference in a new issue