mirror of
https://github.com/sbopkg/sbopkg
synced 2025-01-15 03:41:03 +01:00
add :force to sbopkg.conf WGETFLAGS after --progress=bar to correctly display the progress bar; thanks to happyslacker for the reminder.
This commit is contained in:
parent
8dbba9f417
commit
b132e73ccd
3 changed files with 8 additions and 25 deletions
|
@ -4,4 +4,7 @@ enhancements:
|
|||
|
||||
* Fix typo in 50-default renames file.
|
||||
* Add $ARCH information in dialog backtitles.
|
||||
* Add ":force" to sbopkg.conf WGETFLAGS --progress=bar to correctly
|
||||
display the wget progress bar; thanks to happyslacker for nudging me on
|
||||
this issue again.
|
||||
+--------------------------+
|
||||
|
|
|
@ -32,6 +32,6 @@ export OUTPUT=${OUTPUT:-/tmp}
|
|||
# uses the -O options so there is no need to add that either. In general,
|
||||
# it is not recommended that users change these default values.
|
||||
RSYNCFLAGS="--verbose --timeout=10"
|
||||
WGETFLAGS="--continue --progress=bar --timeout=15 --tries=5"
|
||||
WGETFLAGS="--continue --progress=bar:force --timeout=15 --tries=5"
|
||||
DIFF=${DIFF:-diff}
|
||||
DIFFOPTS=${DIFFOPTS:--u}
|
||||
|
|
|
@ -645,18 +645,8 @@ check_for_updates() {
|
|||
|
||||
# Extract the new package version
|
||||
if [[ ! -z $NEWSB ]]; then
|
||||
NEWARCH=$(egrep -m1 "^ARCH" $NEWSB | sed '
|
||||
s/\([^\t #]*\)[\t #].*/\1/
|
||||
s/[^=]*=//
|
||||
s/"//g
|
||||
s/\${[^-]*-\(.*\)}/\1/
|
||||
s/\$.*/unknown/
|
||||
')
|
||||
NEWBUILD=$(egrep -m1 "^BUILD" $NEWSB | sed '
|
||||
s/^.*[=-]//
|
||||
s/"//g
|
||||
s/[ #}\t].*$//g
|
||||
')
|
||||
eval $(echo -n NEW; grep -m1 ^ARCH= $NEWSB)
|
||||
eval $(echo -n NEW; grep -m1 ^BUILD= $NEWSB)
|
||||
|
||||
# Step 1 - find the version expression
|
||||
# This looks for the last instance of $OUTPUT.
|
||||
|
@ -1058,18 +1048,8 @@ info_item() {
|
|||
SHORTPATH=$REPO_DIR/$CATEGORY/$APP
|
||||
CURVERSION=$(grep VERSION $SHORTPATH/$APP.info |
|
||||
cut -d= -f2 | sed s/\"//g)
|
||||
CURARCH=$(egrep -m1 "^ARCH" $SHORTPATH/$APP.SlackBuild | sed '
|
||||
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
|
||||
')
|
||||
eval $(echo -n CUR; grep -m1 ^ARCH= $SHORTPATH/$APP.SlackBuild)
|
||||
eval $(echo -n CUR; grep -m1 ^BUILD= $SHORTPATH/$APP.SlackBuild)
|
||||
while :; do
|
||||
INSTALLEDPACKAGE=$(ls /var/log/packages |
|
||||
egrep "^($APP|$OLDPKG)-[^-]*-[^-]*-[^-]*\$")
|
||||
|
|
Loading…
Reference in a new issue