mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-10-04 09:32:21 +08:00
aptss问题修复
Signed-off-by: shenmo <jifengshenmo@outlook.com>
This commit is contained in:
parent
72935c3f09
commit
dcfb57f2a7
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -1,4 +1,4 @@
|
|||||||
spark-store (4.8.1) UNRELEASED; urgency=medium
|
spark-store (4.8.1-1) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
* 修复了更新器安装完成后显示下载完成的bug
|
* 修复了更新器安装完成后显示下载完成的bug
|
||||||
|
|
||||||
|
@ -55,6 +55,36 @@ msg_already_running()
|
|||||||
# exit 1
|
# exit 1
|
||||||
#fi
|
#fi
|
||||||
|
|
||||||
|
# Move download file away so missing permissions won't stop usage.
|
||||||
|
CLEANUP_STATE=0
|
||||||
|
cleanup_dllist()
|
||||||
|
{
|
||||||
|
if [ -f "$DLLIST" ]
|
||||||
|
then
|
||||||
|
if ! mv -- "$DLLIST{,.old}" 2>/dev/null
|
||||||
|
then
|
||||||
|
if ! rm -fr -- "${LISTTEMP}" 2>/dev/null
|
||||||
|
then
|
||||||
|
msg "Could not clean up download list file." "warning"
|
||||||
|
msg "无法清除下载列表文件." "warning"
|
||||||
|
CLEANUP_STATE=1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
cleanup_aptfast()
|
||||||
|
{
|
||||||
|
local last_exit_code=$?
|
||||||
|
[ "$CLEANUP_STATE" -eq 0 ] && CLEANUP_STATE=$last_exit_code
|
||||||
|
cleanup_dllist
|
||||||
|
_remove_lock
|
||||||
|
}
|
||||||
|
|
||||||
|
exit_cleanup_state()
|
||||||
|
{
|
||||||
|
exit $CLEANUP_STATE
|
||||||
|
}
|
||||||
LCK_FD=99
|
LCK_FD=99
|
||||||
# create the lock file and lock it, die on failure
|
# create the lock file and lock it, die on failure
|
||||||
_create_lock()
|
_create_lock()
|
||||||
@ -289,36 +319,6 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Move download file away so missing permissions won't stop usage.
|
|
||||||
CLEANUP_STATE=0
|
|
||||||
cleanup_dllist()
|
|
||||||
{
|
|
||||||
if [ -f "$DLLIST" ]
|
|
||||||
then
|
|
||||||
if ! mv -- "$DLLIST{,.old}" 2>/dev/null
|
|
||||||
then
|
|
||||||
if ! rm -fr -- "${LISTTEMP}" 2>/dev/null
|
|
||||||
then
|
|
||||||
msg "Could not clean up download list file." "warning"
|
|
||||||
msg "无法清除下载列表文件." "warning"
|
|
||||||
CLEANUP_STATE=1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
cleanup_aptfast()
|
|
||||||
{
|
|
||||||
local last_exit_code=$?
|
|
||||||
[ "$CLEANUP_STATE" -eq 0 ] && CLEANUP_STATE=$last_exit_code
|
|
||||||
cleanup_dllist
|
|
||||||
_remove_lock
|
|
||||||
}
|
|
||||||
|
|
||||||
exit_cleanup_state()
|
|
||||||
{
|
|
||||||
exit $CLEANUP_STATE
|
|
||||||
}
|
|
||||||
|
|
||||||
# decode url string
|
# decode url string
|
||||||
# translates %xx but must not convert '+' in spaces
|
# translates %xx but must not convert '+' in spaces
|
||||||
|
Loading…
x
Reference in New Issue
Block a user