aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiktor w brodlo <wiktor@brodlo.net>2011-08-21 00:03:11 +0000
committerwiktor w brodlo <wiktor@brodlo.net>2011-08-21 00:03:11 +0000
commite033c81cdb58b23208289631f5b27df89ce64a69 (patch)
tree8d269bea0719e0765dab30f93d521ddbf70aec0b
parentutils.py: fix stage3 unpack and portage sync (diff)
downloadanaconda-e033c81cdb58b23208289631f5b27df89ce64a69.tar.gz
anaconda-e033c81cdb58b23208289631f5b27df89ce64a69.tar.bz2
anaconda-e033c81cdb58b23208289631f5b27df89ce64a69.zip
gentoo/__init__.py: fall back to webrsync
-rw-r--r--gentoo/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gentoo/__init__.py b/gentoo/__init__.py
index e01844b..a0cbeec 100644
--- a/gentoo/__init__.py
+++ b/gentoo/__init__.py
@@ -33,7 +33,9 @@ class Portage:
def sync(self):
self.term.run_command("chroot "+self.root+" emerge --sync")
if self.term.get_child_exit_status() != 0:
- return False
+ self.term.run_command("chroot "+self.root+" emerge-webrsync")
+ if self.term.get_child_exit_status() != 0:
+ return False
self.term.run_command("chroot "+self.root+" emerge --update portage")
if self.term.get_child_exit_status() == 0:
return True