summaryrefslogtreecommitdiffstats
path: root/pyanaconda/timezone.py
Commit message (Collapse)AuthorAgeFilesLines
* Refactor pieces of the Datetime spoke and move some parts to kickstart.pyVratislav Podzimek2013-02-191-0/+3
| | | | | | | | | | The apply method should only set self.data, the execute method should do all necessary runtime changes. The code for starting chronyd service and adding/removing it to/from the list of installed packages and enabled services should be placed somewhere where it can be used by text mode as well. Also use NTP_* constants instead of "chrony" and "chronyd" magic strings.
* Remove the storage module and replace it with blivet.David Lehman2013-01-281-1/+1
|
* Remove unused functions and move storage-specific utils to storage.David Lehman2013-01-281-1/+2
| | | | | | | | | | | | | | | | | | | 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.
* Handle sending program output to tty5 through the logging setup.David Lehman2013-01-281-1/+1
|
* Encode unicode strings returned by pytz.country_timezones() (#887236)Vratislav Podzimek2012-12-181-0/+1
| | | | | | | | | pytz.country_timezones() now returns unicodes strings instead of byte strings. Concatenating byte string and unicode string causes traceback, so we need to encode these unicode strings as utf-8 before returning them from our function. Signed-off-by: Vratislav Podzimek <vpodzime@redhat.com>
* Add UTC and GMT-X timezones (#863199)Vratislav Podzimek2012-11-061-1/+13
| | | | | | It makes sense to set timezone to UTC or GMT-XX. Please mind that "Etc" category doesn't come from my mind, that's how these timezones are defined in the /usr/share/zoneinfo tree.
* don't save system time on s390 (#867856)Dan Hor?k2012-10-181-0/+3
|
* Minimum we have to do with HW clockVratislav Podzimek2012-10-121-0/+19
|
* Don't write out /etc/sysconfig/clock anymore (#859217).Chris Lumens2012-09-241-8/+0
|
* Remove ROOT_PATH/etc/localtime before symlinking timezoneVratislav Podzimek2012-09-031-0/+6
| | | | | os.symlink(target, link_name) fails if the link_name already exists. So try to remove it first.
* Use ksdata.timezone and timezone module instead of anaconda.timezoneVratislav Podzimek2012-08-221-57/+143
| | | | | | | We now use ksdata to store data and execute() methods of kickstart commands to set the installed system up. In order to not place all the code to kickstart.py, timezone.py module gathering all timezone related code was created.
* Remove all the writeKS methods except in network and storage.Chris Lumens2012-04-241-6/+0
| | | | | | | | Those appear to have a lot of information still in them that may not be present either in pykickstart or elsewhere in anaconda. Those still won't be called, but I'm not yet comfortable removing them entirely. Also, use pykickstart to do the writeKS stuff now.
* Remove unnecessary ROOT_PATH constant passing.Ales Kozumplik2011-08-261-6/+7
| | | | This is a hefty and tedious change.
* Use a more general EnvironmentError to catch timezone-file errors.Ales Kozumplik2011-03-281-1/+1
| | | | Resolves: rhbz#691263
* timezones: use more of s-c-date (#520631).Ales Kozumplik2010-10-251-0/+1
| | | | | This patch removes our version of timezone selection and uses the entire widget set from s-c-date instead.
* Structure the repo layout so it matches final structure better and make isys ↵Martin Sivak2010-05-311-0/+76
a real Python package. Also updates the build and autotools stuff to work with the new structure