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 > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 02-20-2009, 06:43 PM
Chris Lumens
 
Default Set runlevel 5 if any package provides service(graphical-login).

---
yuminstall.py | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/yuminstall.py b/yuminstall.py
index f8aae0d..2d63dac 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -1648,10 +1648,8 @@ reposdir=/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/tmp/product/anacon
elif len(self.ayum.tsInfo.matchNaevr(name='plymouth')) > 0:
anaconda.id.bootloader.args.append("rhgb quiet")

- for tsmbr in self.ayum.tsInfo.matchNaevr(name='gdm') + self.ayum.tsInfo.matchNaevr(name='kdebase-workspace'):
- if anaconda.id.displayMode == 'g' and not flags.usevnc:
- anaconda.id.desktop.setDefaultRunLevel(5)
- break
+ if self.ayum.tsInfo.getProvides("service(graphical-login)") != {} and anaconda.id.displayMode == 'g' and not flags.usevnc:
+ anaconda.id.desktop.setDefaultRunLevel(5)

for repo in self.ayum.repos.listEnabled():
repo.dirCleanup()
--
1.6.0.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 02-20-2009, 06:44 PM
 
Default Set runlevel 5 if any package provides service(graphical-login).

As seen on fedora-devel-list...

This one is untested, but it's syntactically right and I believe my
knowledge of yum is right here. tsInfo is the set of packages to be
installed, right? and getProvides does appear to take virtual provides
and return something useful.

I've already got the provides added to gdm and kdebase-workspace, so
that gets us most of the way there. The slim package (which is what
caused me to start on this to begin with) has a bug assigned to it to
add a provides as well.

- Chris

_______________________________________________
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 09:31 PM.

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