Jelajahi Sumber

dom0-updates: confirm yum transaction (yum -y)

Otherwise yum waits for confirmation, without showing the prompt.
Marek Marczykowski-Górecki 10 tahun lalu
induk
melakukan
efe7612fbf
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      misc/qubes-download-dom0-updates.sh

+ 2 - 2
misc/qubes-download-dom0-updates.sh

@@ -91,11 +91,11 @@ set -e
 
 if [ "$GUI" = 1 ]; then
     ( echo "1"
-    fakeroot yum $YUM_ACTION --downloadonly --downloaddir="$DOM0_UPDATES_DIR/packages" $OPTS $PKGLIST
+    fakeroot yum $YUM_ACTION -y --downloadonly --downloaddir="$DOM0_UPDATES_DIR/packages" $OPTS $PKGLIST
     echo 100 ) | zenity --progress --pulsate --auto-close --auto-kill \
          --text="Downloading updates for Dom0, please wait..." --title="Qubes Dom0 updates"
 else
-    fakeroot yum $YUM_ACTION --downloadonly --downloaddir="$DOM0_UPDATES_DIR/packages" $OPTS $PKGLIST
+    fakeroot yum $YUM_ACTION -y --downloadonly --downloaddir="$DOM0_UPDATES_DIR/packages" $OPTS $PKGLIST
 fi
 
 if ls $DOM0_UPDATES_DIR/packages/*.rpm > /dev/null 2>&1; then