Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/DistUpgrade/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/DistUpgrade/xorg_fix_proprietary.pyc

ó
¤Oc@s.ddlZddlZddlZddlZddlZddlZddlZddlZejƒdZ	dZ
e	e	d„Ze	d„Ze	d„Z
e	d„Zedkr*ejƒd	ksÜd
GHejdƒndejd	<ejd
ejddddƒejdejd	ƒejje
ƒrle
Ze
dZejdeefƒejeeƒnejje	ƒs›ejdƒejd	ƒnejje	ƒd	krÝejdƒeje	ƒejd	ƒne	dejdƒZejdeƒej e	eƒejjdƒr^de!e	ƒj"ƒkr^ejde	ƒe
dƒnejjdƒr§de!e	ƒj"ƒkr§ejde	ƒe
dƒnej#d d!d"d#gd$ej$ƒj%ƒd	Z&ejd%e&ƒe&r*ej'e&d&ƒd	kr*eƒseƒq'ejd'ƒq*ndS((iÿÿÿÿNs/etc/X11/xorg.confs/etc/X11/XF86Config-4cCs¶tjdƒg}t}x_t|ƒD]Q}|jƒ}|jƒjdƒr¶|jƒjdƒdjƒjdƒr¶tjdƒ|j	dƒ|j	dƒ|j	d|ƒt
}q&|jƒjd	ƒrë|rë|j	d|ƒt}q&|jƒjd
ƒr?tjd|ƒ|j	dƒ|j	dƒ|j	d|ƒq&|rjtjd|ƒ|j	d|ƒq&|j	|ƒq&Wt|dd
ƒjdj|ƒƒt
j|d|ƒt
S(Ntremove_input_devicestsectiont#is
"inputdevice"sfound 'InputDevice' sectionsL# commented out by update-manager, HAL is now used and auto-detects devices
sA# Keyboard settings are now read from /etc/default/console-setup
t
endsectiontinputdevicescommenting out '%s' s.newtwt(tloggingtdebugtFalsetopentstriptlowert
startswithtsplittendswithtappendtTruetwritetjointostrename(txorg_sourcetxorg_destinationtcontenttin_input_devicestrawtline((sD/usr/lib/python2.7/dist-packages/DistUpgrade/xorg_fix_proprietary.pyRs6
(


		

#cCs1tjj|ƒs'tjd|ƒdSg}x‘t|ƒD]ƒ}|jdƒdjƒ}|jƒj	dƒr°|j
d|ƒr°tjd|ƒd|}tjd	|ƒn|j|ƒq:Wt|ƒj
ƒ|kr-tjd
|||fƒt|ddƒjd
j|ƒƒtj|d|ƒndS(se
    this removes old_driver driver from the xorg.conf and subsitutes
    it with the new_driver
    sfile %s not foundNRitdrivers"%s"sline '%s' founds
	Driver	"%s"
sreplacing with '%s'ssaveing new %s (%s -> %s)s	.xorg_fixRR(RtpathtexistsRtwarningR
RRRR
RRRt	readlinestinfoRRR(t
old_drivert
new_drivertxorgRRts((sD/usr/lib/python2.7/dist-packages/DistUpgrade/xorg_fix_proprietary.pytreplace_driver_from_xorg5s 
#cCs.tjj|ƒs'tjd|ƒdSg}x‘t|ƒD]ƒ}|jdƒdjƒ}|jƒj	dƒr°|j
d|ƒr°tjd|ƒd|}tjd	|ƒn|j|ƒq:Wt|ƒj
ƒ|kr*tjd
||fƒt|ddƒjd
j|ƒƒtj|d|ƒndS(s3
    this comments out a driver from xorg.conf
    sfile %s not foundNRiRs"%s"sline '%s' founds#%ssreplacing with '%s'ssaveing new %s (commenting %s)s	.xorg_fixRR(RRRRRR
RRRR
RRRR R!RRR(R"R$RRR%((sD/usr/lib/python2.7/dist-packages/DistUpgrade/xorg_fix_proprietary.pytcomment_out_driver_from_xorgNs 
#cCs>d„}tt|t|ƒƒƒ}tjd|ƒ|dkS(s* check if we have a multiseat xorg config cSs/|jƒjdƒo.|jƒjƒjdƒS(NRs"serverlayout"(RR
RR(R((sD/usr/lib/python2.7/dist-packages/DistUpgrade/xorg_fix_proprietary.pytis_serverlayout_linehssis_multiseat: lines %ii(tlentfilterR
RR(RR(tmsl((sD/usr/lib/python2.7/dist-packages/DistUpgrade/xorg_fix_proprietary.pytis_multiseatfs	t__main__isNeed to run as rootis/usr/bin/update-managertleveltfilenames$/var/log/dist-upgrade/xorg_fixup.logtfilemodeRs
%s runnings	.obsoletesrenaming obsolete %s -> %ssNo xorg.conf, exitings xorg.conf is zero size, removings.dist-upgrade-s
%Y%m%d%H%Mscreating backup '%s's*/usr/lib/xorg/modules/drivers/fglrx_drv.sotfglrxsRemoving fglrx from %ss+/usr/lib/xorg/modules/drivers/nvidia_drv.sotnvidiasRemoving nvidia from %ss
dpkg-querys-Ws
-f=${Version}sxserver-xorg-coretstdouts!xserver-xorg-core version is '%s's2:1.5.0smultiseat setup, ignoring((tsysRtos.pathRttimetshutilt
subprocesstapt_pkgtinitt	XORG_CONFtOBSOLETE_XORG_CONFRR&R'R,t__name__tgetuidtexittargvtbasicConfigtDEBUGR!RRtoldtnewRtgetsizetremovetstrftimetbackupRtcopyR
treadtPopentPIPEtcommunicatetvertversion_compare(((sD/usr/lib/python2.7/dist-packages/DistUpgrade/xorg_fix_proprietary.pyt<module>sh
	






.