除了Install之外不允许降级

This commit is contained in:
shenmo 2023-02-03 01:38:20 +08:00
parent bb869eec89
commit 01397bf9c6
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,5 @@
Package: oyo
Version: 1.2.3
Version: 1.2.4
Maintainer: shenmo <shenmo@spark-app.store>
Section: utils
Installed-Size:10

View File

@ -34,5 +34,8 @@ if [ "$1" = "yyupdate" ];then
update-apt-fast-conf
##### 其他的直接转给apt-fast
else
elif [ "$1" = "install" ];then
${YY_APT_FAST} $@ --allow-downgrades
else
${YY_APT_FAST} $@
fi