| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/DistUpgrade/ |
Upload File : |
ó
¤Oc @ s d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z d e
f d „ ƒ YZ d e f d „ ƒ YZ
d S( iÿÿÿÿN( t gettextt
AptCdromErrorc B s e Z d Z RS( s% base exception for apt cdrom errors ( t __name__t
__module__t __doc__( ( ( sC /usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeAptCdrom.pyR ! s t AptCdromc B s¡ e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z
d d „ Z d d
„ Z
d „ Z d d „ Z d
„ Z d d „ Z d „ Z RS( s represents a apt cdrom object c C s: | | _ | | _ t ƒ | _ t ƒ | _ t ƒ | _ d S( N( t viewt cdrompatht sett packagest
signaturest i18n( t selfR t path( ( sC /usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeAptCdrom.pyt __init__( s
c C s^ t j j t j j d ƒ t j j d ƒ ƒ } t j j | | ƒ rZ t j | | | ƒ n d S( sG restore the backup copy of the cdroms.list file (*not* sources.list)! s
Dir::States Dir::State::cdromsN(
t osR
t joint apt_pkgt Configt find_dirt findt existst shutilt copy( R t
backup_extt
cdromstate( ( sC /usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeAptCdrom.pyt
restoreBackup0 s c C su | j ƒ } | j | | j ƒ } t j j d ƒ } t | ƒ j ƒ } | j | d | ƒ } t | d ƒ j | ƒ d S( s comment out the cdrom entry s Dir::Etc::sourcelists # %st wN(
t
_readDiskNamet _generateSourcesListLineR R R t find_filet opent readt replacet write( R t disknamet pentryt sourceslistt content( ( sC /usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeAptCdrom.pyt comment_out_cdrom_entry: s c C sµ t ƒ } t ƒ } t ƒ } xŠt j | j d t ƒD]p\ } } } | j d ƒ sa | j d ƒ rk | 2q4 q4 d | k r} q4 q4 d | k r¨ | j t j j | d ƒ ƒ q4 d | k rÓ | j t j j | d ƒ ƒ q4 d | k së d | k rÿ t j
d | ƒ q4 d
| k r*| j t j j | d
ƒ ƒ q4 d | k rxk t j t j j | d ƒ ƒ D]% } | j t j j | d | ƒ ƒ qUWq4 t j j | ƒ d d
k r4 | 2q4 q4 W| | | f S( s|
scan the CD for interessting files and return them as:
(packagesfiles, signaturefiles, i18nfiles)
t topdowns debian-installers
dist-upgraders .aptignrt Packagess Packages.gzt Sourcess
Sources.gzs+ Sources entry found in %s but not supporteds Release.gpgR i t pool(
R R t walkR t Truet endswitht addR
R t loggingt errort listdirt split( R R R
R t roott dirst filest f( ( sC /usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeAptCdrom.pyt _scanCDC s0 (%&c C s† t j j d ƒ } t j ƒ } | j t j j j ƒ ƒ } | j ƒ } t
| d ƒ } | j d | | f ƒ | j d | | f ƒ d S( s update apts cdrom.list s Dir::State::cdromst as
CD::%s "%s";
s CD::%s::Label "%s";
N( R R R t Cdromt identt aptt progresst baset
CdromProgressR R R"