ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Gladkov <legion@altlinux.ru>
To: "Dmitry V. Levin" <ldv@altlinux.org>
Cc: ALT Devel discussion list <devel@lists.altlinux.org>,
	Aleksei Nikiforov <darktemplar@altlinux.org>
Subject: Re: [devel] [PATCH for apt] Fix copying release information from cdrom
Date: Fri, 6 Dec 2019 15:19:00 +0100
Message-ID: <20191206141900.mkzonieis6buqgtb@comp-core-i7-2640m-0182e6> (raw)
In-Reply-To: <20191206121216.GB25049@altlinux.org>

On Fri, Dec 06, 2019 at 03:12:17PM +0300, Dmitry V. Levin wrote:
> On Fri, Dec 06, 2019 at 03:05:38PM +0300, Dmitry V. Levin wrote:
> > 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.
> 
> I'd also add something like "Fixes: https://bugzilla.altlinux.org/37531".

The "Fixes:" is mainly used for commits. Maybe it's better to use "BTS:" ?

-- 
Rgrds, legion



  parent reply	other threads:[~2019-12-06 14:19 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
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     ` Alexey Gladkov [this message]
2019-12-06 20:14       ` [devel] [PATCH for apt] " 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=20191206141900.mkzonieis6buqgtb@comp-core-i7-2640m-0182e6 \
    --to=legion@altlinux.ru \
    --cc=darktemplar@altlinux.org \
    --cc=devel@lists.altlinux.org \
    --cc=ldv@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