From: "Anthony G. Basile" <blueness@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/grss:master commit in: /, grs/
Date: Sun, 5 Jul 2015 12:10:06 +0000 (UTC) [thread overview]
Message-ID: <1436098354.e3c23c8ed8ac697a9a8fccf8edc5ef850f6a94ac.blueness@gentoo> (raw)
commit: e3c23c8ed8ac697a9a8fccf8edc5ef850f6a94ac
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 5 12:12:34 2015 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Jul 5 12:12:34 2015 +0000
URL: https://gitweb.gentoo.org/proj/grss.git/commit/?id=e3c23c8e
clean-worldconf: remove try-except and fix typo.
clean-worldconf | 4 +---
grs/WorldConf.py | 2 +-
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/clean-worldconf b/clean-worldconf
index 1fd5da3..2e76f57 100755
--- a/clean-worldconf
+++ b/clean-worldconf
@@ -7,10 +7,8 @@ from grs import WorldConf
def main():
WorldConf.clean()
- try:
+ if os.path.isfile(CONST.PORTAGE_DIRTYFILE):
os.remove(CONST.PORTAGE_DIRTYFILE)
- except (FileNotFoundError, IsADirectoryError):
- pass
if __name__ == "__main__":
main()
diff --git a/grs/WorldConf.py b/grs/WorldConf.py
index b9e9be9..481d3a3 100644
--- a/grs/WorldConf.py
+++ b/grs/WorldConf.py
@@ -98,7 +98,7 @@ class WorldConf():
continue
fpath = os.path.join(CONST.PORTAGE_CONFIGDIR, 'package.env')
- if os.path.isile(fpath):
+ if os.path.isfile(fpath):
update = False
with open(fpath, 'r') as g:
lines = g.readlines()
next reply other threads:[~2015-07-05 12:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-05 12:10 Anthony G. Basile [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-07-05 15:37 [gentoo-commits] proj/grss:master commit in: /, grs/ Anthony G. Basile
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=1436098354.e3c23c8ed8ac697a9a8fccf8edc5ef850f6a94ac.blueness@gentoo \
--to=blueness@gentoo.org \
--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