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 > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 01-17-2008, 09:26 PM
Chris Lumens
 
Default Don't allow disabling default repositories.

---
iw/task_gui.py | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/iw/task_gui.py b/iw/task_gui.py
index b481047..c5952a5 100644
--- a/iw/task_gui.py
+++ b/iw/task_gui.py
@@ -278,15 +278,20 @@ class TaskWindow(InstallWindow):
checkbox = self.dxml.get_widget("proxyCheckbox")
table.set_sensitive(checkbox.get_active())

- def _taskToggled(self, data, row, store):
+ def _taskToggled(self, button, row, store):
i = store.get_iter(int(row))
val = store.get_value(i, 0)
store.set_value(i, 0, not val)

- def _repoToggled(self, data, row, store):
+ def _repoToggled(self, button, row, store):
i = store.get_iter(int(row))
val = store.get_value(i, 0)

+ # The base repositories can never be disabled, but they can be edited.
+ if val and not store.get_value(i, 2).addon:
+ button.set_active(True)
+ return
+
if not val and not network.hasActiveNetDev():
net = NetworkConfigurator(self.anaconda.id.network)
ret = net.run()
--
1.5.3.7

_______________________________________________
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 01:04 PM.

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