diff options
author | wiktor w brodlo <wiktor@brodlo.net> | 2011-08-21 01:20:29 +0000 |
---|---|---|
committer | wiktor w brodlo <wiktor@brodlo.net> | 2011-08-21 01:20:29 +0000 |
commit | eb0cf09355a308c68c8199eb5ab8d7c9a33bbfda (patch) | |
tree | 87ec151ea06c271f81079b8a9b0622d8c772a593 | |
parent | gentoo/utils.py: install *-configuration-tools on new system (diff) | |
download | anaconda-eb0cf09355a308c68c8199eb5ab8d7c9a33bbfda.tar.gz anaconda-eb0cf09355a308c68c8199eb5ab8d7c9a33bbfda.tar.bz2 anaconda-eb0cf09355a308c68c8199eb5ab8d7c9a33bbfda.zip |
gentoo/__init__.py: try webrsync harder
-rw-r--r-- | gentoo/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gentoo/__init__.py b/gentoo/__init__.py index a0cbeec..603aa82 100644 --- a/gentoo/__init__.py +++ b/gentoo/__init__.py @@ -32,7 +32,7 @@ class Portage: # Syncs the Portage tree and updates Portage if an update is available def sync(self): self.term.run_command("chroot "+self.root+" emerge --sync") - if self.term.get_child_exit_status() != 0: + if not os.path_exists(self.root+"/usr/portage/metadata/timestamp"): self.term.run_command("chroot "+self.root+" emerge-webrsync") if self.term.get_child_exit_status() != 0: return False |