mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
22abe27bfa
The original code- pkg_dir="$(echo $pac_db/$pkg_name-[0-9]*)" is problematic in several ways: - $pac_db and $pkg_name should be quoted, obviously. - It assumes pkgver always starts with an integer, while in fact it just can't contain ':' and '-'. Counterexample: the code breaks on lshw B.02.15-1. - It assumes there are no more than one directory matching the pattern. While this should be the case if everything works perfectly, it certainly relies on external conditions. Counterexample: if the local db contains two packages named foo and foo-3g, even if everything else is perfect, the code will match two directories. Don't make assumptions, use what is known. Signed-off-by: lolilolicon <lolilolicon@gmail.com> |
||
---|---|---|
.. | ||
.gitignore | ||
bacman.in | ||
bash_completion.in | ||
Makefile.am | ||
paccache.in | ||
pacdiff.in | ||
paclist.in | ||
paclog-pkglist.in | ||
pacscripts.in | ||
pacsearch.in | ||
PKGBUILD.vim | ||
README | ||
vimprojects | ||
zsh_completion.in |
Here is a brief description of the files included in this directory: PKGBUILD.vim - a vim/gvim syntax file for PKGBUILDs. Colors known variable names, highlights common errors such as invalid characters in pkgname or pkgver, etc. bash_completion - a bash completion script for pacman, install in /etc/bash_completion.d/ for use (but rename to something descriptive!). zsh_completion - a zsh completion script, install (with a rename) to /usr/share/zsh/site-functions/. pacdiff - a simple pacnew/pacorig/pacsave updater for /etc/. paclist - list all packages installed from a given repository. Useful for seeing which packages you may have installed from the testing repository, for instance. pacscripts - tries to print out the {pre,post}_{install,remove,upgrade} scripts of a given package. pacsearch - a colorized search combining both -Ss and -Qs output. Installed packages are easily identified with a *** and local-only packages are also listed. bacman - regenerate a pacman package based on installed files and the pacman database entries. Useful for reuse, or possible config file extension. vimprojects - a project file for the vim project plugin.