[master 1/1] Fix copy method (#1254135)

bcl installerbot-noreply at redhat.com
Mon Aug 17 19:00:06 UTC 2015


From: "Brian C. Lane" <bcl at redhat.com>

removed needs to be setup outside the loop.

Resolves: rhbz#1254135
---
 blivet/blivet.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/blivet/blivet.py b/blivet/blivet.py
index bde644b..c5abe92 100644
--- a/blivet/blivet.py
+++ b/blivet/blivet.py
@@ -1700,8 +1700,8 @@ def copy(self):
             root.swaps = [new.devicetree.getDeviceByID(d.id, hidden=True) for d in root.swaps]
             root.swaps = [s for s in root.swaps if s]
 
+            removed = set()
             for (mountpoint, old_dev) in root.mounts.items():
-                removed = set()
                 if old_dev is None:
                     continue
 


-- 
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/4af3d2baac3616a08b00c7f4a2735444f38afb58


More information about the anaconda-patches mailing list