home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / doc / python-apt / text / aptsources / sourceslist.txt < prev   
Encoding:
Text File  |  2009-03-30  |  2.2 KB  |  93 lines

  1.  
  2. ``aptsources.sourceslist`` --- Provide an abstraction of the sources.list
  3. *************************************************************************
  4.  
  5. Note: This part of the documentation is created automatically.
  6.  
  7. class aptsources.sourceslist.NullMatcher
  8.  
  9.    a Matcher that does nothing
  10.  
  11.    match(s)
  12.  
  13. class aptsources.sourceslist.SourceEntry(line, file=None)
  14.  
  15.    single sources.list entry
  16.  
  17.    mysplit(line)
  18.  
  19.       a split() implementation that understands the sources.list
  20.       format better and takes [] into account (for e.g. cdroms)
  21.  
  22.    parse(line)
  23.  
  24.       parse a given sources.list (textual) line and break it up into
  25.       the field we have
  26.  
  27.    set_enabled(new_value)
  28.  
  29.       set a line to enabled or disabled
  30.  
  31.    str()
  32.  
  33.       return the current line as string
  34.  
  35. class aptsources.sourceslist.SourceEntryMatcher(matcherPath)
  36.  
  37.    matcher class to make a source entry look nice lots of predefined
  38.    matchers to make it i18n/gettext friendly
  39.  
  40.    match(source)
  41.  
  42.       Add a matching template to the source
  43.  
  44. class aptsources.sourceslist.SourcesList(withMatcher=True, matcherPath='/usr/share/python-apt/templates/')
  45.  
  46.    represents the full sources.list + sources.list.d file
  47.  
  48.    add(type, uri, dist, orig_comps, comment='', pos=-1, file=None)
  49.  
  50.       Add a new source to the sources.list. The method will search for
  51.       existing matching repos and will try to reuse them as far as
  52.       possible
  53.  
  54.    backup(backup_ext=None)
  55.  
  56.       make a backup of the current source files, if no backup
  57.       extension is given, the current date/time is used (and returned)
  58.  
  59.    check_for_relations(sources_list)
  60.  
  61.       get all parent and child channels in the sources list
  62.  
  63.    load(file)
  64.  
  65.       (re)load the current sources
  66.  
  67.    refresh()
  68.  
  69.       update the list of known entries
  70.  
  71.    remove(source_entry)
  72.  
  73.       remove the specified entry from the sources.list
  74.  
  75.    restoreBackup(backup_ext)
  76.  
  77.       restore sources.list files based on the backup extension
  78.  
  79.    save()
  80.  
  81.       save the current sources
  82.  
  83. aptsources.sourceslist.is_mirror(master_uri, compare_uri)
  84.  
  85.    check if the given add_url is idential or a mirror of orig_uri e.g.
  86.    master_uri = archive.ubuntu.com
  87.  
  88.       compare_uri = de.archive.ubuntu.com -> True
  89.  
  90. aptsources.sourceslist.uniq(s)
  91.  
  92.    simple and efficient way to return uniq list
  93.