Data Structures | |
class | PatchInfo |
class | MarFileEntry |
Functions | |
def | exec_shell_cmd |
def | copy_file |
def | bzip_file |
def | bunzip_file |
def | extract_mar |
def | create_partial_patch_for_file |
def | create_add_patch_for_file |
def | process_explicit_remove_files |
def | create_partial_patch |
def | usage |
def | get_buildid |
def | decode_filename |
def | create_partial_patches |
def | main |
def make_incremental_updates.bunzip_file | ( | filename | ) |
Bzip's the file in palce. The original file is replaced with a bunzip'd version of itself. doesn't matter if the filename ends in .bz2 or not
Definition at line 196 of file make_incremental_updates.py.
def make_incremental_updates.bzip_file | ( | filename | ) |
Bzip's the file in place. The original file is replaced with a bzip'd version of itself assumes the path is absolute
Definition at line 190 of file make_incremental_updates.py.
def make_incremental_updates.copy_file | ( | src_file_abs_path, | |
dst_file_abs_path | |||
) |
Copies src to dst creating any parent dirs required in dst first
Definition at line 182 of file make_incremental_updates.py.
def make_incremental_updates.create_add_patch_for_file | ( | to_marfile_entry, | |
patch_info | |||
) |
Copy the file to the working dir, add the add instruction, and add it to the list of archive files
Definition at line 274 of file make_incremental_updates.py.
def make_incremental_updates.create_partial_patch | ( | from_dir_path, | |
to_dir_path, | |||
patch_filename, | |||
shas, | |||
patch_info, | |||
forced_updates | |||
) |
Builds a partial patch by comparing the files in from_dir_path to thoes of to_dir_path
Definition at line 316 of file make_incremental_updates.py.
def make_incremental_updates.create_partial_patch_for_file | ( | from_marfile_entry, | |
to_marfile_entry, | |||
shas, | |||
patch_info | |||
) |
Creates the partial patch file and manifest entry for the pair of files passed in
Definition at line 216 of file make_incremental_updates.py.
def make_incremental_updates.create_partial_patches | ( | patches | ) |
Given the patches generates a set of partial patches
Definition at line 422 of file make_incremental_updates.py.
def make_incremental_updates.decode_filename | ( | filepath | ) |
Breaks filename/dir structure into component parts based on regex for example: firefox-3.0b3pre.en-US.linux-i686.complete.mar Or linux-i686/en-US/firefox-3.0b3.complete.mar Returns dict with keys product, version, locale, platform, type
Definition at line 402 of file make_incremental_updates.py.
def make_incremental_updates.exec_shell_cmd | ( | cmd | ) |
Execs shell cmd and raises an exception if the cmd fails
Definition at line 176 of file make_incremental_updates.py.
def make_incremental_updates.extract_mar | ( | filename, | |
work_dir | |||
) |
Extracts the marfile intot he work_dir assumes work_dir already exists otherwise will throw osError
Definition at line 205 of file make_incremental_updates.py.
def make_incremental_updates.get_buildid | ( | work_dir, | |
platform | |||
) |
extracts buildid from MAR TODO: this should handle 1.8 branch too
Definition at line 384 of file make_incremental_updates.py.
def make_incremental_updates.main | ( | argv | ) |
Definition at line 494 of file make_incremental_updates.py.
def make_incremental_updates.process_explicit_remove_files | ( | dir_path, | |
patch_info | |||
) |
Looks for a 'removed-files' file in the dir_path. If the removed-files does not exist this will throw. If found adds the removed-files found in that file to the patch_info
Definition at line 281 of file make_incremental_updates.py.
def make_incremental_updates.usage | ( | ) |
Definition at line 380 of file make_incremental_updates.py.
← centre documentaire |
|