ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: Aleksei Nikiforov <darktemplar@altlinux.org>
Cc: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] [PATCH for apt] Fix copying release information from cdrom
Date: Fri, 6 Dec 2019 15:05:38 +0300
Message-ID: <20191206120538.GA25049@altlinux.org> (raw)
In-Reply-To: <20191206111554.80969-1-darktemplar@altlinux.org>

[-- Attachment #1: Type: text/plain, Size: 1110 bytes --]

On Fri, Dec 06, 2019 at 02:15:54PM +0300, Aleksei Nikiforov wrote:
> ---
>  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;

LGTM.

I wonder is there any more bugs in constructing path names in the code.


-- 
ldv

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

  reply	other threads:[~2019-12-06 12:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-06 11:15 Aleksei Nikiforov
2019-12-06 12:05 ` Dmitry V. Levin [this message]
2019-12-06 12:12   ` Dmitry V. Levin
2019-12-06 12:19     ` Aleksei Nikiforov
2019-12-06 12:24     ` [devel] [PATCH for apt v2] " Aleksei Nikiforov
2019-12-06 14:19     ` [devel] [PATCH for apt] " 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=20191206120538.GA25049@altlinux.org \
    --to=ldv@altlinux.org \
    --cc=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