From: "André Erdmann" <dywi@mailerd.de> To: gentoo-commits@lists.gentoo.org Subject: [gentoo-commits] proj/R_overlay:overlay_wip commit in: roverlay/ Date: Wed, 18 Jul 2012 16:49:12 +0000 (UTC) [thread overview] Message-ID: <1342629930.5cd02da17ef13323aff48dae2d5527396d298211.dywi@gentoo> (raw) commit: 5cd02da17ef13323aff48dae2d5527396d298211 Author: André Erdmann <dywi <AT> mailerd <DOT> de> AuthorDate: Wed Jul 18 16:45:30 2012 +0000 Commit: André Erdmann <dywi <AT> mailerd <DOT> de> CommitDate: Wed Jul 18 16:45:30 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=5cd02da1 util, dodir: catch OSError if dir exists --- roverlay/util.py | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/roverlay/util.py b/roverlay/util.py index 2df4845..3f32646 100644 --- a/roverlay/util.py +++ b/roverlay/util.py @@ -94,11 +94,16 @@ def sysnop ( nop_returns_success=True, format_str=None ): # --- end of sysnop (...) --- def dodir ( directory, mkdir_p=False, **makedirs_kw ): - if not os.path.isdir ( directory ): + if os.path.isdir ( directory ): return True + try: if mkdir_p: os.makedirs ( directory, **makedirs_kw ) else: os.mkdir ( directory ) - return True + return True + except Exception as e: + LOGGER.exception ( e ) + return os.path.isdir ( directory ) + # --- end of dodir (...) ---
WARNING: multiple messages have this Message-ID (diff)
From: "André Erdmann" <dywi@mailerd.de> To: gentoo-commits@lists.gentoo.org Subject: [gentoo-commits] proj/R_overlay:master commit in: roverlay/ Date: Mon, 30 Jul 2012 08:52:40 +0000 (UTC) [thread overview] Message-ID: <1342629930.5cd02da17ef13323aff48dae2d5527396d298211.dywi@gentoo> (raw) Message-ID: <20120730085240.IafZtD73tO5Zvq8gAu-VBvnmAzv8TzU2X1EmXuPnuyA@z> (raw) commit: 5cd02da17ef13323aff48dae2d5527396d298211 Author: André Erdmann <dywi <AT> mailerd <DOT> de> AuthorDate: Wed Jul 18 16:45:30 2012 +0000 Commit: André Erdmann <dywi <AT> mailerd <DOT> de> CommitDate: Wed Jul 18 16:45:30 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=5cd02da1 util, dodir: catch OSError if dir exists --- roverlay/util.py | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/roverlay/util.py b/roverlay/util.py index 2df4845..3f32646 100644 --- a/roverlay/util.py +++ b/roverlay/util.py @@ -94,11 +94,16 @@ def sysnop ( nop_returns_success=True, format_str=None ): # --- end of sysnop (...) --- def dodir ( directory, mkdir_p=False, **makedirs_kw ): - if not os.path.isdir ( directory ): + if os.path.isdir ( directory ): return True + try: if mkdir_p: os.makedirs ( directory, **makedirs_kw ) else: os.mkdir ( directory ) - return True + return True + except Exception as e: + LOGGER.exception ( e ) + return os.path.isdir ( directory ) + # --- end of dodir (...) ---
next reply other threads:[~2012-07-18 16:49 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-07-18 16:49 André Erdmann [this message] 2012-07-30 8:52 ` [gentoo-commits] proj/R_overlay:master commit in: roverlay/ André Erdmann -- strict thread matches above, loose matches on Subject: below -- 2012-07-24 16:59 [gentoo-commits] proj/R_overlay:overlay_wip " André Erdmann 2012-07-30 8:52 [gentoo-commits] proj/R_overlay:master " André Erdmann 2012-07-19 16:53 ` [gentoo-commits] proj/R_overlay:overlay_wip " André Erdmann 2012-07-30 8:52 [gentoo-commits] proj/R_overlay:master " André Erdmann 2012-07-30 8:52 ` [gentoo-commits] proj/R_overlay:overlay_wip " André Erdmann
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=1342629930.5cd02da17ef13323aff48dae2d5527396d298211.dywi@gentoo \ --to=dywi@mailerd.de \ --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: linkBe 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