public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
From: "W. Trevor King" <wking@tremily.us>
To: gentoo-catalyst@lists.gentoo.org
Subject: Re: [gentoo-catalyst] [PATCH] generic_stage_target: Don't set mountmap['portdir'] without SNAPCACHE
Date: Sun, 23 Mar 2014 22:08:14 -0700	[thread overview]
Message-ID: <20140324050814.GA4008@odin.tremily.us> (raw)
In-Reply-To: <20140322153934.20c19756.dolsen@gentoo.org>

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

On Sat, Mar 22, 2014 at 03:39:34PM -0700, Brian Dolbec wrote:
> On Sat,  8 Mar 2014 10:25:09 -0800 "W. Trevor King" wrote:
> >  		if "SNAPCACHE" not in self.settings:
> > +			self.mountmap["portdir"] =
> > normpath("/".join([
> > +				self.settings["snapshot_cache_path"],
> > +				self.settings["repo_name"],
> > +				]))
> >  			self.mounts.remove("portdir")
> >  			#self.mountmap["portdir"] = None
> >  		if os.uname()[0] == "Linux":
> 
> Not quite correct.  Note the not in that if...

Ah, good point ;).

> diff --git a/catalyst/targets/generic_stage_target.py b/catalyst/targets/generic_stage_target.py
> index 9c39d00..eaf2c1f 100644
> @@ -215,13 +215,14 @@ class generic_stage_target(generic_target):
>  		self.mountmap = SOURCE_MOUNTS_DEFAULTS.copy()
>  		# update them from settings
>  		self.mountmap["distdir"] = self.settings["distdir"]
> -		self.mountmap["portdir"] = normpath("/".join([
> -			self.settings["snapshot_cache_path"],
> -			self.settings["repo_name"],
> -			]))
>  		if "SNAPCACHE" not in self.settings:
>  			self.mounts.remove("portdir")
> -			#self.mountmap["portdir"] = None
> +			self.mountmap["portdir"] = None
> +		else:
> +			self.mountmap["portdir"] = normpath("/".join([
> +				self.settings["snapshot_cache_path"],
> +				self.settings["repo_name"],
> +				]))

This looks good to me.

Cheers,
Trevor

-- 
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

      reply	other threads:[~2014-03-24  5:08 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-02 23:00 [gentoo-catalyst] [PATCH 2/5] generic_stage_target.py: Fix an intermittent snapshot_cache_path keyerror Brian Dolbec
2014-03-02 23:01 ` [gentoo-catalyst] [PATCH 3/5] Add more working files, directories to .gitignore Brian Dolbec
2014-03-03  3:07   ` Brian Dolbec
2014-03-05  4:50   ` [gentoo-catalyst] " W. Trevor King
2014-03-05  5:17     ` Brian Dolbec
2014-03-05 15:32       ` W. Trevor King
2014-03-22 17:47         ` Brian Dolbec
2014-03-02 23:01 ` [gentoo-catalyst] [PATCH 4/5] catalyst/targets/generic_target.py: Pass TERM through to the chroot Brian Dolbec
2014-03-08 18:38   ` W. Trevor King
2014-03-02 23:01 ` [gentoo-catalyst] [PATCH 5/5] Add arm64 support Brian Dolbec
2014-03-03  3:05   ` Brian Dolbec
2014-03-05  4:47 ` [gentoo-catalyst] Re: [PATCH 2/5] generic_stage_target.py: Fix an intermittent snapshot_cache_path keyerror W. Trevor King
2014-03-05  5:25   ` Brian Dolbec
2014-03-08 18:25     ` [gentoo-catalyst] [PATCH] generic_stage_target: Don't set mountmap['portdir'] without SNAPCACHE W. Trevor King
2014-03-22 22:39       ` Brian Dolbec
2014-03-24  5:08         ` W. Trevor King [this message]

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=20140324050814.GA4008@odin.tremily.us \
    --to=wking@tremily.us \
    --cc=gentoo-catalyst@lists.gentoo.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox