diff options
author | David Cantrell <dcantrell@redhat.com> | 2009-10-07 10:26:23 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2009-10-07 22:25:06 -1000 |
commit | d1efd7c6ef7e68639a778bedf8250c86db86df2f (patch) | |
tree | 0dd945ebdbebded464e8d7549fcc6d1cd2d53d4d /network.py | |
parent | c3ba1476541ba795388f9692215620b57ffeab22 (diff) | |
download | anaconda-d1efd7c6ef7e68639a778bedf8250c86db86df2f.tar.gz anaconda-d1efd7c6ef7e68639a778bedf8250c86db86df2f.tar.xz anaconda-d1efd7c6ef7e68639a778bedf8250c86db86df2f.zip |
Do not copy over 70-persistent.rules if instPath is '' (#527707)
Diffstat (limited to 'network.py')
-rw-r--r-- | network.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/network.py b/network.py index d4c13e9b3..3b0dacfa6 100644 --- a/network.py +++ b/network.py @@ -732,7 +732,7 @@ class Network: if not os.path.isdir("%s/etc/udev/rules.d" %(instPath,)): iutil.mkdirChain("%s/etc/udev/rules.d" %(instPath,)) - if os.path.isfile(rules): + if os.path.isfile(rules) and rules != destRules: shutil.copy(rules, destRules) else: f = open(destRules, "w") |