FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian GCC

 
 
LinkBack Thread Tools
 
Old 04-27-2010, 08:49 AM
Radek Vykydal
 
Default Move some consts to module globals for use in other places (#520146)

---
network.py | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/network.py b/network.py
index 484950c..a2ca6bd 100644
--- a/network.py
+++ b/network.py
@@ -42,6 +42,10 @@ _ = lambda x: gettext.ldgettext("anaconda", x)
import logging
log = logging.getLogger("anaconda")

+sysconfigDir = "/etc/sysconfig"
+netscriptsDir = "%s/network-scripts" % (sysconfigDir)
+networkConfFile = "%s/network" % (sysconfigDir)
+
class IPError(Exception):
pass

@@ -523,9 +527,9 @@ class Network:
if len(devices) == 0:
return

- sysconfig = "%s/etc/sysconfig" % (instPath,)
- netscripts = "%s/network-scripts" % (sysconfig,)
- destnetwork = "%s/network" % (sysconfig,)
+ sysconfig = instPath + sysconfigDir
+ netscripts = instPath + netscriptsDir
+ destnetwork = instPath + networkConfFile

if not os.path.isdir(netscripts):
iutil.mkdirChain(netscripts)
--
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 09:26 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org