Re: [PATCH 02/22] Move some consts to module globals for use in other places (#520146)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ack

On Tue, 27 Apr 2010, Radek Vykydal wrote:

---
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)


- -- David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkvfh8wACgkQ5hsjjIy1VknVRQCglK12LGXDVlWtVFCbLjbOU/Z7
haoAoJs58yc57g1k5ggg9V3hDl6d0AgI
=is6P
-----END PGP SIGNATURE-----

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

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux