ReportMirrorFailure("GPGFailure");
}
#endif
+
/* Always move the meta index, even if gpgv failed. This ensures
* that PackageFile objects are correctly filled in */
if (FileExists(DestFile)) {
"Release");
SigFile = FinalFile;
}
- Rename(DestFile,FinalFile);
- chmod(FinalFile.c_str(),0644);
+ // Done, queue for rename on transaction finished
+ PartialFile = DestFile;
DestFile = FinalFile;
}
E: There are problems and -y was used without --force-yes" aptget install -qq -y old
}
+test_inrelease_to_unauth_inrelease() {
+ msgmsg "Test InRelease to InRelease without sig"
+ create_fresh_archive
+ signreleasefiles 'Marvin Paranoid'
+ avoid_ims_hit
+
+ testsuccess aptget update -qq
+
+ testequal "WARNING: The following packages cannot be authenticated!
+ old
+E: There are problems and -y was used without --force-yes" aptget install -qq -y old
+
+ testfailure ls rootdir/var/lib/apt/lists/*_InRelease
+ testsuccess ls rootdir/var/lib/apt/lists/*_Release
+}
+
TESTDIR=$(readlink -f $(dirname $0))
. $TESTDIR/framework
test_inreleae_to_release_reverts_all
test_unauthenticated_to_invalid_inrelease
+
+test_inrelease_to_unauth_inrelease