diff options
author | wiktor w brodlo <wiktor@brodlo.net> | 2011-06-27 18:27:04 +0000 |
---|---|---|
committer | wiktor w brodlo <wiktor@brodlo.net> | 2011-06-27 18:27:04 +0000 |
commit | 99123d229d12d52a6ecd88dbe5f1f619aa2c398d (patch) | |
tree | 320d500b773c7143f44d68cd5c0c210aa90adc70 | |
parent | gentoo/__init__.py: fixed chroots (diff) | |
download | anaconda-99123d229d12d52a6ecd88dbe5f1f619aa2c398d.tar.gz anaconda-99123d229d12d52a6ecd88dbe5f1f619aa2c398d.tar.bz2 anaconda-99123d229d12d52a6ecd88dbe5f1f619aa2c398d.zip |
gentoo/__init__.py: added some crude debug
-rw-r--r-- | gentoo/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gentoo/__init__.py b/gentoo/__init__.py index 3e59663..594214c 100644 --- a/gentoo/__init__.py +++ b/gentoo/__init__.py @@ -25,13 +25,16 @@ import sys class Portage: def __init__(self, terminal): + print "Portage init!" self.term = terminal # Syncs the Portage tree and updates Portage if an update is available def sync(self): + print "chroot "+os.environ["ANACONDA_PRODUCTPATH"]+" emerge --sync" self.term.run_command("chroot "+os.environ["ANACONDA_PRODUCTPATH"]+" emerge --sync") if self.term.get_child_exit_status() != 0: return False + print "chroot "+os.environ["ANACONDA_PRODUCTPATH"]+" emerge --update portage" self.term.run_command("chroot "+os.environ["ANACONDA_PRODUCTPATH"]+" emerge --update portage") if self.term.get_child_exit_status() == 0: return True @@ -39,6 +42,7 @@ class Portage: # Installs a package atom def install(self, atom): + print "chroot "+os.environ["ANACONDA_PRODUCTPATH"]+" emerge "+atom self.term.run_command("chroot "+os.environ["ANACONDA_PRODUCTPATH"]+" emerge "+atom) if self.term.get_child_exit_status() == 0: return True @@ -46,6 +50,7 @@ class Portage: # Updates world def update_world(self): + print "chroot "+os.environ["ANACONDA_PRODUCTPATH"]+" emerge --deep --newuse --update world" self.term.run_command("chroot "+os.environ["ANACONDA_PRODUCTPATH"]+" emerge --deep --newuse --update world") if self.term.get_child_exit_status() == 0: return True @@ -53,6 +58,7 @@ class Portage: # Removes a package atom def remove(self, atom): + print "chroot "+os.environ["ANACONDA_PRODUCTPATH"]+" emerge -C "+atom self.term.run_command("chroot "+os.environ["ANACONDA_PRODUCTPATH"]+" emerge -C "+atom) if self.term.get_child_exit_status() == 0: return True |