ó uÈÔec@sLddlmZddlmZmZddlZdefd„ƒYZdS(iÿÿÿÿ(t DebianPlugin(tPackageManagert LinuxPolicyNt DebianPolicycBsxeZdZdZdZdZdZdZdZdZ e gZ ddZ d d „Zd „Zed „ƒZd „ZRS(tDebiansthe Debian projectshttps://www.debian.org/ts*dpkg-query -W -f='${Package}|${Version}\n's dpkg --verifytfriendlys9/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/gamess:/usr/local/sbin:/usr/local/binc Cs_tt|ƒjd|ƒd|_td|jd|jd|jd|ƒ|_t g|_ dS(NtsysrootRt query_commandtverify_commandt verify_filtertchroot( tsuperRt__init__t ticket_numberRt _debq_cmdt _debv_cmdt _debv_filtertpackage_managerRtvalid_subclasses(tselfR((s7/usr/lib/python2.7/site-packages/sos/policies/debian.pyR s    cCsidd6j||ƒS(Nsxz-utilstxz(tget(Rtbinary((s7/usr/lib/python2.7/site-packages/sos/policies/debian.pyt_get_pkg_name_for_binarys cCstjjdƒS(s[This method checks to see if we are running on Debian. It returns True or False.s/etc/debian_version(tostpathtisfile(tcls((s7/usr/lib/python2.7/site-packages/sos/policies/debian.pytcheck$scCseyLtddƒ3}|jƒ}d|kr1dSd|krAdSWdQXtSWntk r`tSXdS(Ns/etc/lsb-releasetrs wheezy/sidis jessie/sidi(topentreadtFalsetIOError(Rtfpt rel_string((s7/usr/lib/python2.7/site-packages/sos/policies/debian.pyt dist_version*s     N(t__name__t __module__tdistrotvendort vendor_urlRRRRt name_patternRRtPATHtNoneR Rt classmethodRR%(((s7/usr/lib/python2.7/site-packages/sos/policies/debian.pyRs  (t sos.pluginsRt sos.policiesRRRR(((s7/usr/lib/python2.7/site-packages/sos/policies/debian.pyts