Package dak :: Module transitions
[show private | hide private]
[frames | no frames]

Module dak.transitions

Function Summary
  check_transitions(transitions)
  edit_transitions()
  init()
  load_transitions(trans_file)
  lock_file(f)
  main()
  print_info(trans, source, expected, rm, reason, packages)
  temp_transitions_file(transitions)
  transition_info(transitions)
  usage(exit_code)
  write_transitions(from_trans)
Update the active transitions file safely.
  write_transitions_from_file(from_file)
We have a file we think is valid; if we're using sudo, we invoke it here, otherwise we just parse the file and call write_transitions

Variable Summary
NoneType Cnf = None                                                                  
NoneType Options = None                                                                  
NoneType projectB = None                                                                  
SRE_Pattern re_broken_package = [a-zA-Z]\w+\s+-.*

Imported modules:
apt_pkg, dak.daklib.database, errno, fcntl, os, pg, pwd, re, sys, tempfile, time, dak.daklib.utils, yaml
Imported exceptions:
TransitionsError
Function Details

write_transitions(from_trans)

Update the active transitions file safely. This function takes a parsed input file (which avoids invalid files or files that may be be modified while the function is active), and ensure the transitions file is updated atomically to avoid locks.

write_transitions_from_file(from_file)

We have a file we think is valid; if we're using sudo, we invoke it here, otherwise we just parse the file and call write_transitions

Variable Details

Cnf

Type:
NoneType
Value:
None                                                                  

Options

Type:
NoneType
Value:
None                                                                  

projectB

Type:
NoneType
Value:
None                                                                  

re_broken_package

Type:
SRE_Pattern
Value:
[a-zA-Z]\w+\s+-.*                                                      

Generated by Epydoc 2.1 on Sat Jan 24 18:08:17 2009 http://epydoc.sf.net