| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/python2.6/site-packages/packagekit/ |
Upload File : |
Ńň
ŻséJc @ s' d d k l Z d d d YZ d S( i˙˙˙˙( t PackageKitEnumt PackagekitPackagec B s# e Z d Z d Z d Z RS( c C s d | | | | f S( Ns %s;%s;%s;%s( ( t selft namet versiont archt data( ( s6 /usr/lib/python2.6/site-packages/packagekit/package.pyt get_package_id s c C s t | i d d S( sn split up a package id name;ver;arch;data into a tuple
containing (name, ver, arch, data)
t ;i ( t tuplet split( R t
package_id( ( s6 /usr/lib/python2.6/site-packages/packagekit/package.pyt get_package_from_id s c C s | i d } t | d j o t St } xÓ | D]Ë } | i d d } | i d d } | i d } t } xw | D]o } | i } t | d j o qz n | d d j o | d d !} n | t i j o t } t } Pqz qz W| t j o t Sq4 W| t j o t St S(
sf
Check the string license_field for free licenses, indicated by
their short names as documented at
http://fedoraproject.org/wiki/Licensing
Licenses can be grouped by " or " to indicate that the package
can be redistributed under any of the licenses in the group.
For instance: GPLv2+ or Artistic or FooLicense.
Also, if a license ends with "+", the "+" is removed before
comparing it to the list of valid licenses. So if license
"FooLicense" is free, then "FooLicense+" is considered free.
Groups of licenses can be grouped with " and " to indicate
that parts of the package are distributed under one group of
licenses, while other parts of the package are distributed
under another group. Groups may be wrapped in parenthesis.
For instance:
(GPLv2+ or Artistic) and (GPL+ or Artistic) and FooLicense.
At least one license in each group must be free for the
package to be considered Free Software. If the license_field
is empty, the package is considered non-free.
s and i t (t t )s or i i˙˙˙˙t +( R
t lent Falset replacet stripR t
free_licensest True( R t
license_fieldt groupst one_free_groupt groupt licensest
group_is_freet license( ( s6 /usr/lib/python2.6/site-packages/packagekit/package.pyt check_license_field! s4
( t __name__t
__module__R R R ( ( ( s6 /usr/lib/python2.6/site-packages/packagekit/package.pyR s N( ( t packagekit.backendR R ( ( ( s6 /usr/lib/python2.6/site-packages/packagekit/package.pyt <module> s