imgcreate/kickstart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit e23da6b92dca314e3ccdef99c4dd314e4c019aaf Author: Brian C. Lane bcl@redhat.com Date: Tue Jun 12 12:18:02 2012 -0700
imgcreate: Use copy2 for TimezoneConfig (#829032)
diff --git a/imgcreate/kickstart.py b/imgcreate/kickstart.py index ad69a87..aca4043 100644 --- a/imgcreate/kickstart.py +++ b/imgcreate/kickstart.py @@ -154,7 +154,7 @@ class TimezoneConfig(KickstartConfig): f.write("UTC=" + utc + "\n") f.close() try: - shutil.copyfile(self.path("/usr/share/zoneinfo/%s" %(tz,)), + shutil.copy2(self.path("/usr/share/zoneinfo/%s" %(tz,)), self.path("/etc/localtime")) except OSError, e: log.error("Error copying timezone: %s" %(e.strerror,))
livecd@lists.fedoraproject.org