From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.1 From: Aleksei Nikiforov To: devel@lists.altlinux.org Date: Fri, 6 Dec 2019 14:15:54 +0300 Message-Id: <20191206111554.80969-1-darktemplar@altlinux.org> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Aleksei Nikiforov Subject: [devel] [PATCH for apt] Fix copying release information from cdrom X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Dec 2019 11:17:21 -0000 Archived-At: List-Archive: List-Post: --- 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,vectorFindDir("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