Package portage :: Module dispatch_conf
[hide private]

Module dispatch_conf

source code

Classes [hide private]
  diff_mixed_wrapper
Functions [hide private]
 
diffstatusoutput(cmd, file1, file2)
Execute the string cmd in a shell with getstatusoutput() and return a 2-tuple (status, output).
source code
 
diff_mixed(func, file1, file2) source code
 
read_config(mandatory_opts) source code
 
rcs_archive(archive, curconf, newconf, mrgconf)
Archive existing config in rcs (on trunk).
source code
 
file_archive(archive, curconf, newconf, mrgconf)
Archive existing config to the archive-dir, bumping old versions out of the way into .# versions (log-rotate style).
source code
 
rcs_archive_post_process(archive)
Check in the archive file with the .dist.new suffix on the branch and remove the one with the .dist suffix.
source code
 
file_archive_post_process(archive)
Rename the archive file with the .dist.new suffix to a .dist suffix
source code
Variables [hide private]
  RCS_BRANCH = u'1.1.1'
  RCS_LOCK = u'rcs -ko -M -l'
  RCS_PUT = u'ci -t-"Archived config file." -m"dispatch-conf upd...
  RCS_GET = u'co'
  RCS_MERGE = u'rcsmerge -p -r1.1.1 '%s' > '%s''
  DIFF3_MERGE = u'diff3 -mE '%s' '%s' '%s' > '%s''
  diffstatusoutput_mixed = <portage.dispatch_conf.diff_mixed_wra...
  __package__ = 'portage'

Imports: io, functools, os, shutil, stat, subprocess, sys, tempfile, portage, _encodings, KeyValuePairFileLoader, _, shlex_split, varexpand


Function Details [hide private]

rcs_archive(archive, curconf, newconf, mrgconf)

source code 

Archive existing config in rcs (on trunk). Then, if mrgconf is specified and an old branch version exists, merge the user's changes and the distributed changes and put the result into mrgconf. Lastly, if newconf was specified, leave it in the archive dir with a .dist.new suffix along with the last 1.1.1 branch version with a .dist suffix.

file_archive(archive, curconf, newconf, mrgconf)

source code 

Archive existing config to the archive-dir, bumping old versions out of the way into .# versions (log-rotate style). Then, if mrgconf was specified and there is a .dist version, merge the user's changes and the distributed changes and put the result into mrgconf. Lastly, if newconf was specified, archive it as a .dist.new version (which gets moved to the .dist version at the end of the processing).


Variables Details [hide private]

RCS_PUT

Value:
u'ci -t-"Archived config file." -m"dispatch-conf update."'

diffstatusoutput_mixed

Value:
<portage.dispatch_conf.diff_mixed_wrapper object at 0x7f16242a8b10>