[devel] [PATCH for apt] Fix copying release information from cdrom
Aleksei Nikiforov
darktemplar на altlinux.org
Пт Дек 6 14:15:54 MSK 2019
---
apt/cmdline/rpmindexcopy.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/apt/cmdline/rpmindexcopy.cc b/apt/cmdline/rpmindexcopy.cc
index 6d5a414..06b391a 100644
--- a/apt/cmdline/rpmindexcopy.cc
+++ b/apt/cmdline/rpmindexcopy.cc
@@ -180,10 +180,10 @@ bool RPMIndexCopy::CopyPackages(const string &CDROM,const string &Name,vector<st
release.c_str());
string TargetF = _config->FindDir("Dir::State::lists") + "partial/";
TargetF += URItoFileName(S);
- if (FileExists(RipDirectory(*I) + release) == true)
+ if (FileExists(RipDirectory(*I) + "/" + release) == true)
{
FileFd Target(TargetF,FileFd::WriteEmpty);
- FileFd Rel(RipDirectory(*I) + release,FileFd::ReadOnly);
+ FileFd Rel(RipDirectory(*I) + "/" + release,FileFd::ReadOnly);
if (_error->PendingError() == true)
return false;
--
2.24.0
Подробная информация о списке рассылки Devel