Package dak :: Module process_new
[hide private]
[frames] | no frames]

Module process_new

source code

Handles NEW and BYHAND packages


Contact: Debian FTP Master <ftpmaster@debian.org>

Copyright:

License: GNU General Public License version 2 or later

Classes [hide private]
  Section_Completer
  Priority_Completer
Functions [hide private]
 
takenover_binaries(upload, missing, session) source code
 
print_new(upload, missing, indexed, session, file=sys.stdout) source code
 
index_range(index) source code
 
edit_new(overrides, upload, session) source code
 
edit_index(new, upload, index) source code
 
edit_overrides(new, upload, session) source code
 
check_pkg(upload, upload_copy, session) source code
 
do_bxa_notification(new, upload, session) source code
 
run_user_inspect_command(upload, upload_copy) source code
str
get_reject_reason(reason='')
get reason for rejection
source code
 
do_new(upload, upload_copy, handler, session) source code
 
usage(exit_code=0) source code
 
lock_package(package)
Lock package so that noone else jumps in processing it.
source code
 
do_pkg(upload, session) source code
 
show_new_comments(uploads, session) source code
 
sort_uploads(new_queue, uploads, session, nobinaries=False) source code
 
end() source code
 
main() source code
Variables [hide private]
  Options = None
  Logger = None
  Priorities = None
  Sections = None

Imports: errno, os, readline, stat, subprocess, sys, tempfile, contextlib, pwd, apt_pkg, dak, or_, daklog, utils, re_default_answer, re_isanum, AlreadyLockedError, SummaryStats, Config, UploadCopy, PolicyQueueUploadHandler, Color


Function Details [hide private]

get_reject_reason(reason='')

source code 

get reason for rejection

Returns: str
string giving the reason for the rejection or None if the rejection should be cancelled

lock_package(package)

source code 

Lock package so that noone else jumps in processing it.

Parameters:
  • package (string) - source package name to lock
Decorators:
  • @contextlib.contextmanager