Package portage :: Module getbinpkg
[hide private]

Module getbinpkg

source code

Classes [hide private]
  long
int(x=0) -> int or long int(x, base=10) -> int or long
  ParseLinks
Parser class that overrides HTMLParser to grab all anchors from an html page and provide suffix and prefix limitors
  PackageIndex
Functions [hide private]
 
make_metadata_dict(data) source code
 
create_conn(baseurl, conn=None)
Takes a protocol://site:port/address url, and an optional connection.
source code
 
make_ftp_request(conn, address, rest=None, dest=None)
Uses the |conn| object to request the data from address and issuing a rest if it is passed.
source code
 
make_http_request(conn, address, _params={}, headers={}, dest=None)
Uses the |conn| object to request the data from address, performing Location forwarding and using the optional params and headers.
source code
 
match_in_array(array, prefix=u'', suffix=u'', match_both=1, allow_overlap=0) source code
 
dir_get_list(baseurl, conn=None)
Takes a base url to connect to and read from.
source code
 
file_get_metadata(baseurl, conn=None, chunk_size=3000)
Takes a base url to connect to and read from.
source code
 
file_get(baseurl=None, dest=None, conn=None, fcmd=None, filename=None, fcmd_vars=None)
Takes a base url to connect to and read from.
source code
 
file_get_lib(baseurl, dest, conn=None)
Takes a base url to connect to and read from.
source code
 
dir_get_metadata(baseurl, conn=None, chunk_size=3000, verbose=1, usingcache=1, makepickle=None) source code
 
_cmp_cpv(d1, d2) source code
Variables [hide private]
  _all_errors = (<type 'exceptions.NotImplementedError'>, <type ...
  __package__ = 'portage'

Imports: colorize, slot_dict_class, _, portage, os, _encodings, _unicode_decode, _unicode_encode, _hide_url_passwd, _all_metadata_keys, sys, socket, time, tempfile, base64, warnings, html_parser_HTMLParser, urllib_parse_unquote, pickle, ftplib, http_client_HTTPConnection, http_client_BadStatusLine, http_client_ResponseNotReady, http_client_error


Function Details [hide private]

create_conn(baseurl, conn=None)

source code 

Takes a protocol://site:port/address url, and an optional connection. If connection is already active, it is passed on. baseurl is reduced to address and is returned in tuple (conn,address)

dir_get_list(baseurl, conn=None)

source code 

Takes a base url to connect to and read from. URI should be in the form <proto>://<site>[:port]<path> Connection is used for persistent connection instances.

file_get_metadata(baseurl, conn=None, chunk_size=3000)

source code 

Takes a base url to connect to and read from. URI should be in the form <proto>://<site>[:port]<path> Connection is used for persistent connection instances.

file_get(baseurl=None, dest=None, conn=None, fcmd=None, filename=None, fcmd_vars=None)

source code 

Takes a base url to connect to and read from. URI should be in the form <proto>://[user[:pass]@]<site>[:port]<path>

file_get_lib(baseurl, dest, conn=None)

source code 

Takes a base url to connect to and read from. URI should be in the form <proto>://<site>[:port]<path> Connection is used for persistent connection instances.


Variables Details [hide private]

_all_errors

Value:
(<type 'exceptions.NotImplementedError'>,
 <type 'exceptions.ValueError'>,
 <class 'socket.error'>,
 <class 'ftplib.Error'>,
 <type 'exceptions.IOError'>,
 <type 'exceptions.EOFError'>,
 <class 'ssl.SSLError'>,
 <class 'httplib.HTTPException'>)