403Webshell
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/landscape/package/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/landscape/package/facade.pyc

}9Rc@sddlZddlZddlZddlZddlZddlZddlZddlmZddl	m
Z
ddlZejdddde
[ddlZddlZddlZddlmZdd	lmZdd
lmZddlmZmZmZddlmZdd
lmZdefdYZ defdYZ!defdYZ"defdYZ#defdYZ$de%fdYZ&dS(iN(tStringIO(t
attrgettertignoretmoduletapttcategory(tSourcesList(tAcquireProgress(tInstallProgress(tappend_filetcreate_filet	read_file(tUBUNTU_PATH(tbuild_skeleton_apttTransactionErrorcBseZdZRS(s)Raised when the transaction fails to run.(t__name__t
__module__t__doc__(((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyRstDependencyErrorcBs eZdZdZdZRS(s9Raised when a needed dependency wasn't explicitly marked.cCs
||_dS(N(tpackages(tselfR((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyt__init__%scCs-ddjg|jD]}t|^qS(NsMissing dependencies: %ss, (tjoinRtstr(Rtpackage((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyt__str__(s(RRRRR(((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyR"s	tChannelErrorcBseZdZRS(s"Raised when channels fail to load.(RRR(((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyR-stLandscapeAcquireProgresscBseZdZRS(cGsdS(sDOverride trying to get the column count of the buffer.

        We always send the output to a file, not to a terminal, so the
        default width (80 columns) is fine for us.

        Overriding this method means that we don't have to care about
        fcntl.ioctl API differences for different Python versions.
        N((Rtdummy((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyt_winch3s(RRR(((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyR1stLandscapeInstallProgresscBs/eZdZdZdZdZdZRS(cCs+tt|j}tj||_|S(sOverride to find out whether dpkg exited or not.

        The C{run()} method returns os.WEXITSTATUS(res) without checking
        os.WIFEXITED(res) first, so it can signal that everything is ok,
        even though something causes dpkg not to exit cleanly.

        Save whether dpkg exited cleanly into the C{dpkg_exited}
        attribute. If dpkg exited cleanly the exit code can be used to
        determine whether there were any errors. If dpkg didn't exit
        cleanly it should mean that something went wrong.
        (tsuperRt
wait_childtost	WIFEXITEDtdpkg_exited(Rtres((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyR CscCs@tt|j}|dkr<tj|_|jt_n|S(s6Fork and override the excepthook in the child process.i(RRtforktsyst
excepthooktold_excepthookt_prevent_dpkg_apport_error(Rtpid((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyR%Ss
cCs:|tkr#tj|||dS|j|||dS(sPrevent dpkg errors from generating Apport crash reports.

        When dpkg reports an error, a SystemError is raised and cleaned
        up in C code. However, it seems like the Apport except hook is
        called before the C code clears the error, generating crash
        reports even though nothing crashed.

        This exception hook doesn't call the Apport hook for
        SystemErrors, but it calls it for all other errors.
        N(tSystemErrorR&t__excepthook__R((Rtexc_typetexc_objtexc_tb((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyR)]sN(RRtNoneR#R(R R%R)(((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyR>s
		
t	AptFacadecBseZdZdZdZdZd;dZdZdZ	dZ
dZd	Zd
Z
dZdZed
ZdZdZd;dZdZdZdZdZdZdZdZdZedZdZdZ dZ!dZ"dZ#dZ$d Z%d!Z&d"Z'd#Z(d$Z)d%Z*d&Z+d'Z,d(Z-d)Z.d*Z/d+Z0d,Z1d-Z2d.Z3d/Z4d0Z5d1Z6d2Z7d3Z8d4Z9d5Z:d6Z;d7Z<d8Z=d9Z>d:Z?RS(<stWrapper for tasks using Apt.

    This object wraps Apt features, in a way that makes using and testing
    these features slightly more comfortable.

    @param root: The root dir of the Apt configuration files.
    @ivar refetch_package_index: Whether to refetch the package indexes
        when reloading the channels, or reuse the existing local
        database.
    iis/var/lib/dpkg/statuscCs||_g|_|jdk	rG|j|jjd|jgntjjd||_t	|_
i|_i|_g|_
t	|_g|_g|_g|_t	|_dS(Ns--roottrootdir(t_roott
_dpkg_argsR0t_ensure_dir_structuretextendRtcachetCachet_cachetFalset_channels_loadedt	_pkg2hasht	_hash2pkgt_version_installst_global_upgradet_version_removalst_version_hold_creationst_version_hold_removalstrefetch_package_index(Rtroot((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyR~s		
								cCs|jd|jd|jd|jd|jd}|jd|jd|jdttjj|d	d
tjj|d|_tjj|jst|jd
ndS(Nsetc/aptsetc/apt/sources.list.dsvar/cache/apt/archives/partialsvar/lib/apt/lists/partialsvar/lib/dpkgsvar/lib/dpkg/infosvar/lib/dpkg/updatessvar/lib/dpkg/triggerst	availablettstatus(t_ensure_sub_dirR
R!tpathRt_dpkg_statustexists(Rtdpkg_dir((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyR5s






cCs>tjj|j|}tjj|s:tj|n|S(s)Ensure that a dir in the Apt root exists.(R!RIRR3RKtmakedirs(Rtsub_dirt	full_path((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyRHscCs
|jjS(s/Get all the packages available in the channels.(R=t
itervalues(R((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pytget_packagesscCs>g|jD]-}|j|r
|j|jr
|^q
S(sqGet all packages in the channels that are locked.

        For Apt, it means all packages that are held.
        (RQtis_package_installedt_is_package_heldR(Rtversion((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pytget_locked_packagesscCs#g|jD]}|jj^q
S(s5Return the name of all the packages that are on hold.(RURtname(RRT((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pytget_package_holdsscCs6tjddg|jdtj}|j|dS(sfSet the dpkg selection.

        It basically does "echo $selection | dpkg --set-selections".
        tdpkgs--set-selectionststdinN(t
subprocesstPopenR4tPIPEtcommunicate(Rt	selectiontprocess((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyt_set_dpkg_selectionsscCs|j|jjddS(sdAdd a dpkg hold for a package.

        @param version: The version of the package to hold.
        s holdN(R`RRV(RRT((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pytset_package_holdscCsB|j|s#|j|jr'dS|j|jjddS(sjRemoves a dpkg hold for a package.

        @param version: The version of the package to unhold.
        Ns install(RRRSRR`RV(RRT((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pytremove_package_holdsc	Cs{|jjd|j}|js=|rtjj|ri}|r`|jr`||d<ny9y|jj|Wnt	k
r|jjnXWn-t
jjk
rt
d|jnX|jjdn|jj|jjxu|jD]j}|j|sqnxL|jD]A}|j|dtj}||j||f<||j|<q%WqWt|_dS(sReload the channels and update the cache.

        @param force_reload_binaries: Whether to always reload
            information about the binaries packages that are in the facade's
            internal repo.
        tsources_lists"Apt failed to reload channels (%r)t	with_infoN(R9topenR0t_get_internal_sources_listRCR!RIRKtupdatet	TypeErrorRR7tFetchFailedExceptionRtget_channelsR<tclearR=t_is_main_architecturetversionstget_package_skeletonR:tget_hashtTrueR;(Rtforce_reload_binariestinternal_sources_listtnew_apt_argsRRTthash((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pytreload_channelss8	



cCs|jr
dS|jdS(s6Reload the channels if they haven't been reloaded yet.N(R;Ru(R((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pytensure_channels_reloadeds	cCs%tjjd}tjj|dS(s@Return the path to the source.list file for the facade channels.sDir::Etc::sourcepartss_landscape-internal-facade.list(tapt_pkgtconfigtfind_dirR!RIR(Rtsources_dir((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyRfscCs|j}d||f}|r<|ddj|7}ntjj|rvt|jd}||krvdSn|d7}t||dS(sAdd a deb URL which points to a repository.

        @param url: The base URL of the repository.
        @param codename: The dist in the repository.
        @param components: The components to be included.
        s	deb %s %ss %st s
N(RfRR!RIRKRtsplitR	(Rturltcodenamet
componentstsources_file_pathtsources_linetcurrent_content((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pytadd_channel_apt_debs
cCs(|j||jd|dddS(sAdd a directory with packages as a channel.

        @param path: The path to the directory containing the packages.

        A Packages file is created in the directory with information
        about the deb files.
        s	file://%ss./N(t_create_packages_fileRR0(RRI((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pytadd_channel_deb_dirs
cCs2|j}tjj|r.tj|ndS(sClear the channels that have been added through the facade.

        Channels that weren't added through the facade (i.e.
        /etc/apt/sources.list and /etc/apt/sources.list.d) won't be
        removed.
        N(RfR!RIRKtremove(RR((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pytclear_channels%scsQdjfdttjD}ttjjd|dS(s0Create a Packages file in a directory with debs.s
c3s-|]#}jtjj|VqdS(N(tget_package_stanzaR!RIR(t.0tfilename(Rtdeb_dir(s</usr/lib/python2.7/dist-packages/landscape/package/facade.pys	<genexpr>3stPackagesN(RtsortedR!tlistdirR
RI(RRtpackages_contents((RRs</usr/lib/python2.7/dist-packages/landscape/package/facade.pyR0scCsZt}g|D]F}|jsi|jd6|jd6dj|jd6|jd6^qS(sReturn a list of channels configured.

        A channel is a deb line in sources.list or sources.list.d. It's
        represented by a dict with baseurl, distribution, components,
        and type keys.
        tbaseurltdistributionR{Rttype(RtdisabledturitdistRtcompsR(RRctentry((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyRj7s	cCs5t}x|D]}|jtqW|jdS(s#Remove all the configured channels.N(Rtset_enabledR:tsave(RRcR((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pytreset_channelsCs	
c	Cst|}tj|}|jjd}|jtjj|}tjj	|}t
|}tj|j
}tj|j
}	tj|j
}
tjtj|tjd|fdt|fd|fd|	fd|
fgS(sReturn a stanza for the package to be included in a Packages file.

        @param deb_path: The path to the deb package.
        tcontroltFilenametSizetMD5sumtSHA1tSHA256(Retapt_insttDebFileRtextractdatatcloseR!RItbasenametgetsizeRthashlibtmd5t	hexdigesttsha1tsha256Rwtrewrite_sectiont
TagSectiontREWRITE_PACKAGE_ORDERR(Rtdeb_pathtdeb_filetdebRRtsizetcontentsRRR((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyRJs
cCstjjdS(s1Return the architecture APT is configured to use.sAPT::Architecture(RwRxtget(R((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pytget_arch_scCsa|dkrd}ntjjdtjjd|tjjd|}|jjd|S(skSet the architecture that APT should use.

        Setting multiple architectures isn't supported.
        RFsAPT::ArchitecturessAPT::Architectures::sAPT::ArchitectureN(R0RwRxRktsetR9Re(Rtarchitecturetresult((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pytset_archcs	cCst|d|dtS(sReturn a skeleton for the provided package.

        The skeleton represents the basic structure of the package.

        @param pkg: Package to build skeleton from.
        @param with_info: If True, the skeleton will include information
            useful for sending data to the server.  Such information isn't
            necessary if the skeleton will be used to build a hash.

        @return: a L{PackageSkeleton} object.
        Rdtwith_unicode(R
Rp(RtpkgRd((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyRnvscCs|jj|j|fS(siReturn a hash from the given package.

        @param version: an L{apt.package.Version} object.
        (R<RR(RRT((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pytget_package_hashscCs
|jjS(s=Get the hashes of all the packages available in the channels.(R<tvalues(R((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pytget_package_hashesscCs|jj|S(sGet the package having the provided hash.

        @param hash: The hash the package should have.

        @return: The L{apt.package.Package} that has the given hash.
        (R=R(RRt((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pytget_package_by_hashscCs||jjkS(s!Is the package version installed?(Rt	installed(RRT((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyRRscCs|jS(s*Is the package available for installation?(tdownloadable(RRT((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pytis_package_availablescCs.|jjs|jjrtS||jjkS(s8Is the package an upgrade for another installed package?(Rt
is_upgradableRR:(RRT((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pytis_package_upgradescCs#t|dstS|j|jkS(s2Is the package for the facade's main architecture?t	shortname(thasattrRpRVR(RR((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyRlscCs|jjtjkS(sIs the package marked as held?(t_pkgtselected_stateRwt
SELSTATE_HOLD(RR((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyRSscCs/g|jD]}|jj|kr
|^q
S(sGet all available packages matching the provided name.

        @param name: The name the returned packages should have.
        (RQRRV(RRVRT((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pytget_packages_by_namescCstd|jDS(s/Return the packages that are in a broken state.css$|]}|jjr|jVqdS(N(Rtis_inst_broken(RRT((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pys	<genexpr>s(RRQ(R((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyt_get_broken_packagesscCsL|jr|jgS|js%|jr5|j|jgS|jrH|jgSdS(s]Return the versions that will be changed for the package.

        Apt gives us that a package is going to be changed and have
        variables set on the package to indicate what will change. We
        need to convert that into a list of versions that will be either
        installed or removed, which is what the server expects to get.
        N(tmarked_installt	candidatetmarked_upgradetmarked_downgradeRt
marked_deleteR0(RR((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyt_get_changed_versionss	
	
csg|D]}|j|f^q}t}xX|jjD]G|jsVq;n|j}|jfd|Dq;W|j|}|rtg|D]\}|^qnt	|dkS(sCheck that the changes Apt will do have all been requested.

        @raises DependencyError: If some change hasn't been explicitly
            requested.
        @return: C{True} if all the changes that Apt will perform have
            been requested.
        c3s|]}|fVqdS(N((RRT(R(s</usr/lib/python2.7/dist-packages/landscape/package/facade.pys	<genexpr>si(
RRR9tget_changesRlRRgt
differenceRtlen(Rtrequested_changesRTtall_changestversions_to_be_changedRmtdependencies((Rs</usr/lib/python2.7/dist-packages/landscape/package/facade.pyt_check_changess"	%cCs|jj}|jr2|d|j|jf7}nd}|jj|jkr|j|jj}|jsr|jr|jj}||jj	kr|jj}nd|}qn||7}|S(sAReturn a string representation of a specific dependency relation.s (%s %s)s but is not installables but %s is to be installed(
t
target_pkgRVt
target_vert	comp_typeR9RRRRTR(Rtdep_relationtinfotreasontdep_packageRT((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyt_get_unmet_relation_infos	
cCs|dk}|jj}xc|D][}xR|jD]D}|j}|jtjksb|j|r2|j|r2|Sq2WqW|S(s+Return whether a dependency is satisfied.

        For positive dependencies (Pre-Depends, Depends) it means that
        one of its targets is going to be installed. For negative
        dependencies (Conflicts, Breaks), it means that none of its
        targets are going to be installed.
        tBreakst	Conflicts(RR(	R9t	_depcachetall_targetst
parent_pkgt
current_stateRwtCURSTATE_INSTALLEDRR(Rt
dependencytdep_typetis_positivetdepcachetor_depttargetR((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyt_is_dependency_satisfieds
	cCs|j}|sdSdg}xt|dtdD]}xddddgD]}|jjjj|g}x|D]}|j||rqyng}x$|D]}|j|j	|qWd	|j
|f}	d
dt|	}
|j|	|
j|qyWqQWq8Wdj|S(
sGet information about unmet dependencies in the cache state.

        Go through all the broken packages and say which dependencies
        haven't been satisfied.

        @return: A string with dependency information like what you get
            from apt-get.
        RFs/The following packages have unmet dependencies:tkeyRVt
PreDependstDependsRRs
  %s: %s: s or
R{s
(
RRRRt_candtdepends_listRRtappendRRVRR(Rtbroken_packagestall_infoRRRRtrelation_infosRRt
or_divider((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyt_get_unmet_dependency_infos&
	

&cCs+dtjd<dtjd<dtjd<dS(sW
        Set the environment to avoid attempts by apt to interact with a user.
        tnoninteractivetDEBIAN_FRONTENDtnonetAPT_LISTCHANGES_FRONTENDtAPT_LISTBUGS_FRONTENDN(R!tenviron(R((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyt_set_frontend_noninteractive/s

cCs#dtjkrttjd<ndS(s
        If no PATH is set in the environment, use the Ubuntu default PATH.

        When the client is launched from the landscape-client-settings-ui the
        PATH variable is incorrectly set, this method rectifies that.
        tPATHN(R!RR(R((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyt_default_path_when_missing7scCs;|j|jtjjdtjjdddS(sV
        Setup environment and apt options for successful package operations.
        s
DPkg::optionssDPkg::options::s--force-confoldN(RRRwRxRkR(R((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyt_setup_dpkg_for_changesBs

cCst|jdkp't|jdk}|s4dSg|jD]}|j|s>|^q>}|rtdddjgt|D]}|jj	^qnx|jD]}|j
|qWx|jD]}|j|qWdS(s>
        Perform pending hold operations on packages.
        is0Cannot perform the changes, since the following spackages are not installed: %ss, s#Package holds successfully changed.N(RRARBR0RRRRRRRVRaRb(Rthold_changesRTt
not_installed((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyt_perform_hold_changesKs$
	-c
Cst}tj\}}tjd}tjd}tj|dtj|dt}z!d}x||jkrld	}|dkrt	j
|jtj
d|j|n|d7}y;|jjdt|d||jstdnWnPtjjtfk
rQ}|jt|}	t|jdd|	}qnX|jt|}	PqnW|d	k	r|nWd	tj|dtj|dtj|X|	S(
sd
        Commit cached APT operations and give feedback on the results as a
        string.
        iiisMdpkg process might be in use. Retrying package changes. %d retries remaining.tfetch_progresstinstall_progresssdpkg didn't exit cleanly.s

Package operation log:
N(RttempfiletmkstempR!tduptdup2Rtmax_dpkg_retriesR0ttimetsleeptdpkg_retry_sleeptloggingtwarningR9tcommitRR#R+RR7tLockFailedExceptiontgetvalueRRtargsR(
Rtfetch_outputtfdtinstall_output_patht
old_stdoutt
old_stderrR
t
dpkg_triesterrortresult_text((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyt_commit_package_changesesL		
		
	

cCs]xV|jD]K}||j_|jjdt|j|jj|j|jjq
WdS(Ntauto_fix(R>RRtmark_installR:RkRtprotect(RtfixerRT((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyt_preprocess_installss
cst}td|jDtfd|jD}x|jD]}|j|jry|j|jjn|j|krqKn|jjdt|j	|jj
|j|jj
|j|jj
|j
qKW|rtdddjt|ndS(Ncss|]}|jVqdS(N(R(RRT((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pys	<genexpr>sc3s'|]}|jkr|jVqdS(N(R(RRT(tpackage_installs(s</usr/lib/python2.7/dist-packages/landscape/package/facade.pys	<genexpr>sR"s7Can't perform the changes, since the following packagess
 are held: %ss, (RR>R@RSRtaddRVtmark_deleteR:RkRR$Rtinstall_protectRRR(RR%theld_package_namestpackage_upgradesRT((R's</usr/lib/python2.7/dist-packages/landscape/package/facade.pyt_preprocess_removess&	cCs#|jr|jjdtndS(Ntdist_upgrade(R?R9tupgradeRp(R((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyt_preprocess_global_upgrades	cCsg|j}||krcy|jtWqctk
r_}t|jdd|jqcXndS(sQ
        Attempt to automatically resolve problems with broken packages.
        is
N(RtresolveRpR+RRR(RR%talready_broken_packagestnow_broken_packagesR((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyt_resolve_broken_packagesscCs|j}|j|j|r/|jr/gS|j}tj|jj}|j	||j
|j||j|||S(N(
R>R6R@R?RRwtProblemResolverR9RR&R0R-R4(Rtversion_changesR2R%((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyt_preprocess_package_changess



cCs)|j}|j|sdS|jS(sD
        Perform pending install/remove/upgrade operations.
        N(R7RR0R!(RR6((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyt_perform_package_changesscCs|j|j}|j}g}|dk	rD|j|n|dk	r`|j|nt|dkrdj|SdS(s9
        Perform the pending package operations.
        iR{N(RRR8R0RRR(Rthold_result_texttpackage_result_texttresults((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pytperform_changess
cCs6|j2|j2|j2|j2t|_|jjdS(s%Clear the pending package operations.N(R>R@RBRAR:R?R9Rk(R((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pytreset_markss	cCs|jj|dS(s"Mark the package for installation.N(R>R(RRT((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyR#scCs
t|_dS(sUpgrade all installed packages.N(RpR?(R((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pytmark_global_upgrade
scCs|jj|dS(sMark the package for removal.N(R@R(RRT((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pytmark_removescCs|jj|dS(sMark the package to be held.N(RAR(RRT((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyt	mark_holdscCs|jj|dS(s*Mark the package to have its hold removed.N(RBR(RRT((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pytmark_remove_holdsN(@RRRRRRJR0RR5RHRQRURWR`RaRbR:RuRvRfRRRRRjRRRRRpRnRRRRRRRRlRSRRRRRRRRRRRR!R&R-R0R4R7R8R<R=R#R>R?R@RA(((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyR1nsv
				
		
		
*																		
															9					
									('RRRR!RZR&Rt	cStringIORtoperatorRtwarningstfilterwarningst
FutureWarningRRRwtaptsources.sourceslistRtapt.progress.textRtapt.progress.baseRtlandscape.lib.fsR	R
Rtlandscape.constantsRtlandscape.package.skeletonR
t	ExceptionRRRRRtobjectR1(((s</usr/lib/python2.7/dist-packages/landscape/package/facade.pyt<module>s4
0

Youez - 2016 - github.com/yon3zu
LinuXploit