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()