Просмотр исходного кода

run apt-get download in quiet mode as it messes with output otherwise

David Kalnischkies лет назад: 14
Родитель
Сommit
2aa7df1d88
1 измененных файлов с 5 добавлено и 6 удалено
  1. 5 6
      test/integration/test-apt-get-download

+ 5 - 6
test/integration/test-apt-get-download

@@ -13,13 +13,12 @@ buildsimplenativepackage 'apt' 'all' '2.0' 'unstable'
 setupaptarchive
 
 testdownload() {
-	msgtest 'Test download of package file' $1
-	if [ -z "$3" ]; then
-		aptget download ${2}
-	else
-		aptget download ${2}/${3}
+	local APT="$2"
+	if [ -n "$3" ]; then
+		APT="${APT}/${3}"
 	fi
-	test -f $1 && msgpass || msgfail
+	msgtest "Test download of package file $1 with" "$APT"
+	aptget -qq download ${APT} && test -f $1 && msgpass || msgfail
 }
 
 testdownload apt_1.0_all.deb apt stable