summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2003-04-06 16:04:51 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2003-04-06 16:04:51 +0000
commit6ead9d25018d517cd6cfe27399b7fd7e33c1ef19 (patch)
treea05b0e6fee5624ea6a6c970a0f39487bb8078b81 /apt-pkg
parent279048500953d786320065d0140b74a08d3a6368 (diff)
* corrected a incorrect use of string().c_str() (thanks to mdz!)
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/indexcopy.cc8
1 files changed, 6 insertions, 2 deletions
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<string> &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<string> &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();