summaryrefslogtreecommitdiffstats
path: root/pyanaconda/timezone.py
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2013-01-08 18:30:39 -0600
committerDavid Lehman <dlehman@redhat.com>2013-01-28 13:15:04 -0600
commitea9f0d7cfee26140f6244899b48ae2125688bbba (patch)
tree6f58cd9251d7aff2ff042fa51111847d9b72416c /pyanaconda/timezone.py
parente6522ec42778d6246445c67d46b0a3764e17b62a (diff)
downloadanaconda-ea9f0d7cfee26140f6244899b48ae2125688bbba.tar.gz
anaconda-ea9f0d7cfee26140f6244899b48ae2125688bbba.tar.xz
anaconda-ea9f0d7cfee26140f6244899b48ae2125688bbba.zip
Remove unused functions and move storage-specific utils to storage.
This is the first pass at setting things up to split storage out into a separate package. It replaces the guts of iutil.execWithRedirect and iutil.execWithCapture with a single backend function, _run_program. The main thing I can think of that might be cause for complaint is that _run_program does not log each output line as the external program outputs it, so you get the whole output buffer at once. Storage gets its own copy of _run_program and all of the calls in storage use the copy from storage.util. The reason I moved all of the iutil arch functions into storage is that they are mostly used in storage and I didn't want there to be two copies of the whole set. The rest is removing of unused things and moving of things only used by storage into storage.
Diffstat (limited to 'pyanaconda/timezone.py')
-rw-r--r--pyanaconda/timezone.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyanaconda/timezone.py b/pyanaconda/timezone.py
index 6e8709b43..01edeb37c 100644
--- a/pyanaconda/timezone.py
+++ b/pyanaconda/timezone.py
@@ -30,6 +30,7 @@ from collections import OrderedDict
from pyanaconda import localization
from pyanaconda import iutil
+from pyanaconda.storage import arch
import logging
log = logging.getLogger("anaconda")
@@ -105,7 +106,7 @@ def save_hw_clock(timezone):
"""
- if iutil.isS390():
+ if arch.isS390():
return
cmd = "hwclock"