]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-hashsum-verification
* apt-pkg/acquire-item.cc:
[apt.git] / test / integration / test-hashsum-verification
index 29420c098816ffaf2eac41a51257e8a71347688c..033096ee8504a93f5fc60a79549ef0f4e68e9357 100755 (executable)
@@ -70,6 +70,13 @@ runtest() {
         msgtest 'No Packages file in /var/lib/apt/lists'
         [ "$(ls rootdir/var/lib/apt/lists/*Package* 2>/dev/null)" = "" ] && msgpass || msgfail 
         
+        # now with the unsigned Release file
+        rm -rf rootdir/var/lib/apt/lists
+        rm aptarchive/InRelease aptarchive/Release.gpg
+        msgtest 'unsigned apt-get update gets the expected hashsum mismatch'
+       aptget update 2>&1 | grep "Hash Sum mismatch" > /dev/null && msgpass || msgfail
+
+
 }
 
 runtest