From: Aleksei Nikiforov <darktemplar@altlinux.org> To: devel@lists.altlinux.org Cc: Aleksei Nikiforov <darktemplar@altlinux.org> Subject: [devel] [PATCH for apt v2] Fix copying release information from cdrom Date: Fri, 6 Dec 2019 15:24:02 +0300 Message-ID: <20191206122402.81986-1-darktemplar@altlinux.org> (raw) In-Reply-To: <20191206121216.GB25049@altlinux.org> Fixes: https://bugzilla.altlinux.org/37531 --- 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
next prev parent reply other threads:[~2019-12-06 12:24 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-12-06 11:15 [devel] [PATCH for apt] " Aleksei Nikiforov 2019-12-06 12:05 ` Dmitry V. Levin 2019-12-06 12:12 ` Dmitry V. Levin 2019-12-06 12:19 ` Aleksei Nikiforov 2019-12-06 12:24 ` Aleksei Nikiforov [this message] 2019-12-06 14:19 ` Alexey Gladkov 2019-12-06 20:14 ` Dmitry V. Levin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20191206122402.81986-1-darktemplar@altlinux.org \ --to=darktemplar@altlinux.org \ --cc=devel@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git