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 Development

 
 
LinkBack Thread Tools
 
Old 12-13-2011, 09:58 PM
David Lehman
 
Default Remove an old hack with action registration.

This will probably break the md dialogs and possibly others.
---
pyanaconda/storage/devicetree.py | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py
index 6914c6e..fb40cf6 100644
--- a/pyanaconda/storage/devicetree.py
+++ b/pyanaconda/storage/devicetree.py
@@ -410,14 +410,8 @@ class DeviceTree(object):
action.device not in self._devices:
raise DeviceTreeError("device is not in the tree")
elif (action.isCreate and action.isDevice):
- # this allows multiple create actions w/o destroy in between;
- # we will clean it up before processing actions
- #raise DeviceTreeError("device is already in the tree")
if action.device in self._devices:
- self._removeDevice(action.device)
- for d in self._devices:
- if d.path == action.device.path:
- self._removeDevice(d)
+ raise DeviceTreeError("device is already in the tree")

if action.isCreate and action.isDevice:
self._addDevice(action.device)
--
1.7.3.4

_______________________________________________
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 03:03 AM.

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