From: "Matt Turner" <mattst88@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/catalyst:master commit in: modules/
Date: Tue, 5 Feb 2013 08:34:16 +0000 (UTC) [thread overview]
Message-ID: <1360053242.366009cf6a893ab44c98ff7e7a08b8130d24e98a.mattst88@gentoo> (raw)
commit: 366009cf6a893ab44c98ff7e7a08b8130d24e98a
Author: Guy Martin <gmsoft <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 5 08:31:09 2013 +0000
Commit: Matt Turner <mattst88 <AT> gmail <DOT> com>
CommitDate: Tue Feb 5 08:34:02 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=366009cf
Make sure shutil.rmtree() isn't passed a symlink
Bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=455022
Reviewed-by: Matt Turner <mattst88 <AT> gentoo.org>
---
modules/generic_stage_target.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/generic_stage_target.py b/modules/generic_stage_target.py
index 12921d6..952fa4b 100644
--- a/modules/generic_stage_target.py
+++ b/modules/generic_stage_target.py
@@ -1143,7 +1143,7 @@ class generic_stage_target(generic_target):
"/empty"].split()
for x in self.settings[self.settings["spec_prefix"]+"/empty"]:
myemp=self.settings["destpath"]+x
- if not os.path.isdir(myemp):
+ if not os.path.isdir(myemp) or os.path.islink(myemp):
print x,"not a directory or does not exist, skipping 'empty' operation."
continue
print "Emptying directory",x
next reply other threads:[~2013-02-05 8:34 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-05 8:34 Matt Turner [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-01-06 2:00 [gentoo-commits] proj/catalyst:master commit in: modules/ Brian Dolbec
2014-01-06 2:00 Brian Dolbec
2014-01-06 2:00 Brian Dolbec
2014-01-06 2:00 Brian Dolbec
2014-01-03 6:12 [gentoo-commits] proj/catalyst:pending " Brian Dolbec
2014-01-06 2:00 ` [gentoo-commits] proj/catalyst:master " Brian Dolbec
2014-01-03 5:03 [gentoo-commits] proj/catalyst:pending " Brian Dolbec
2014-01-06 2:00 ` [gentoo-commits] proj/catalyst:master " Brian Dolbec
2013-12-15 21:33 Matt Turner
2013-12-15 4:19 Matt Turner
2013-12-15 4:19 Matt Turner
2013-12-15 4:19 Matt Turner
2013-12-15 4:19 Matt Turner
2013-12-15 4:19 Matt Turner
2013-12-15 4:19 Matt Turner
2013-12-15 4:19 Matt Turner
2013-12-15 4:19 Matt Turner
2013-12-15 4:19 Matt Turner
2013-12-15 4:19 Matt Turner
2013-12-15 4:19 Matt Turner
2013-12-15 4:19 Matt Turner
2013-12-15 4:19 Matt Turner
2013-12-15 4:19 Matt Turner
2013-08-08 5:38 Matt Turner
2013-08-02 5:59 Brian Dolbec
2013-05-27 20:26 Richard Farina
2013-05-27 20:26 Richard Farina
2013-05-27 20:15 Richard Farina
2013-02-23 2:02 Matt Turner
2013-02-23 2:02 Matt Turner
2013-02-23 2:02 Matt Turner
2013-02-23 2:02 Matt Turner
2013-02-23 2:02 Matt Turner
2012-11-22 2:51 Jorge Manuel B. S. Vicetto
2012-11-22 2:51 Jorge Manuel B. S. Vicetto
2012-11-01 20:04 Richard Farina
2012-10-29 20:36 Anthony G. Basile
2012-10-29 20:35 Anthony G. Basile
2012-10-14 5:50 Matt Turner
2012-08-31 0:34 Jorge Manuel B. S. Vicetto
2012-08-29 4:17 Jorge Manuel B. S. Vicetto
2012-08-26 19:30 Jorge Manuel B. S. Vicetto
2012-08-23 5:55 Jorge Manuel B. S. Vicetto
2012-08-23 5:55 Jorge Manuel B. S. Vicetto
2012-08-23 5:55 Jorge Manuel B. S. Vicetto
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=1360053242.366009cf6a893ab44c98ff7e7a08b8130d24e98a.mattst88@gentoo \
--to=mattst88@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@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