Mercurial > treepkg
view contrib/bin/README @ 557:9824e409388b
Refactor git branching
If a checkout is already available and the branch is changed in
the config git command would always fail because it doesn't know
the branch to track. Therefore always check if the branch is
locally available and if not checkout the remote branch
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Fri, 02 Sep 2011 08:45:28 +0000 |
parents | dc17b62d3cdd |
children |
line wrap: on
line source
delete-old-debs.py ------------------ Script to remove old deb files from a given list of directories. Tree Packager builds a lot of deb files when running a long time. Not all of them a needed forever. We had a directory with over 13.000(!) deb files eating up 15 GiB of hard disk space. This lead to performance problems and problems generating the corresponding repository. This script enables you only leave the n-th youngest deb files per package in the directory. It may be used inside a cron job to garbage collect old package. Usage: delete-old-debs.py [options] dir ... Options: -h, --help show this help message and exit -v, --verbose verbose output -d, --dry-run don't remove the old deb files -k KEEP, --keep=KEEP number of files to keep. Default: 3 copy-latest-pkgs.py ------------------- Copies/Hardlinks deb files from snapshots to experimental. It performs a check if you run it as user 'saegewerker'. By default the files are hardlinked. Usage: copy-latest-pkgs.py [options] src-dir dst-dir Options: -h, --help show this help message and exit -v, --verbose verbose output -d, --dry-run don't copy the deb files -n, --no-saegewerker Don't force run as 'saegewerker' -l, --no-hardlinks copy files instead of hard linking