X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/279048500953d786320065d0140b74a08d3a6368..71a174eec0debaed2159b043ff6ef81cd618408b:/apt-pkg/indexcopy.cc diff --git a/apt-pkg/indexcopy.cc b/apt-pkg/indexcopy.cc index 77426386d..1f65062f7 100644 --- a/apt-pkg/indexcopy.cc +++ b/apt-pkg/indexcopy.cc @@ -598,6 +598,9 @@ bool SigVerify::CopyAndVerify(string CDROM,string Name,vector &SigList, string gpgvpath = _config->Find("Dir::Bin::gpg", "/usr/bin/gpgv"); string pubringpath = _config->Find("Apt::GPGV::TrustedKeyring", "/etc/apt/trusted.gpg"); + string releasegpg = *I+"Release.gpg"; + string release = *I+"Release"; + Args[i++] = gpgvpath.c_str(); Args[i++] = "--keyring"; Args[i++] = pubringpath.c_str(); @@ -617,8 +620,9 @@ bool SigVerify::CopyAndVerify(string CDROM,string Name,vector &SigList, } } } - Args[i++] = string(*I+"Release.gpg").c_str(); - Args[i++] = string(*I+"Release").c_str(); + + Args[i++] = releasegpg.c_str(); + Args[i++] = release.c_str(); Args[i++] = NULL; pid_t pid = ExecFork();