- The design of the program
- Coding style
- Testing. Writing test cases
- Generating pacapt script
- Branches
- Closed branches
- Don't use tab or smart tab;
- Use
2-spaceinstead of a tab; - Contribute to library file under
./lib/directory; - We try to follow the convention from: https://github.com/icy/bash-coding-style.
See also tests/README.md and https://github.com/icy/pacapt/actions.
- Use
make shellcheck POSIXif you have shellcheck and enoughPerlpackages (JSON,URI::Escape) on your system; - Use
PACAPT_DEBUG=foowherefoois a package manager (dpkg,pacman,zypper, ...) to print whatpacaptwill do. UsePACAPT_DEBUG=autofor auto-detection; - You can use
dockerfor testing, by mounting thepacapt.devscript to the container. See alsodocker.isection inMakefile. Example:
$ make pacapt.dev
$ docker run --rm -ti \
-v $PWD/pacapt.dev:/usr/bin/pacman \
debian:stable /bin/bash
# Your container's shell is available from this point
Alternatively you can use the Makefile
$ make docker.i DISTRO=debian:stable
# # Your Bourne shell is available now
# # Type `bash` to start more convenient interactive shell.
- For your development, use
make pacapt.dev; - Please do not use
make pacaptto updatepacapt, and/or modify it manually;
ng: The current development branch. Some pull requests are merged on to this branch, but the work may not be ready for production.your feature branch: For new feature or bug fix, please work on your own branch and create pull request. Do not put different ideas on a same branch because that makes future tracking harder.
master: The old stable code of thepacapt. This branch is closed on May 4th, 2014.