On Wed, Jul 22, 2009 at 5:58 AM, Dan McGee<[email protected]> wrote: > This implements FS#13877. Add a new option "-Qk" which checks if all of the > files for a given package (or packages) are really on the system (i.e. not > accidentally deleted). This can be combined with filters and other display > options. It also respects both the --quiet and --verbose flags to give > varying levels of output. > > Based on the original patch by Charly Coste <[email protected]>, thanks > for your work! > > Signed-off-by: Dan McGee <[email protected]> > --- > > Some additional notes and example output: > > dmc...@galway ~/projects/pacman (master) > $ ./src/pacman/pacman -Qkq > wpa_supplicant /etc/wpa_supplicant.conf > > dmc...@galway ~/projects/pacman (master) > $ ./src/pacman/pacman -Qk > wpa_supplicant: missing /etc/wpa_supplicant.conf (No such file or directory) > wpa_supplicant: 22 total, 1 missing file(s) > > $ ./src/pacman/pacman -Qkmv > Root : / > Conf File : /etc/pacman.conf > DB Path : /var/lib/pacman/ > Cache Dirs: /var/cache/pacman/pkg/ /home/makepkg/packages/ > Lock File : /var/lib/pacman/db.lck > Log File : /var/log/pacman.log > Targets : None > bjfilter: 5 total, 0 missing file(s) > clearlooks: 51 total, 0 missing file(s) > ebtables: 37 total, 0 missing file(s) > icc: 1729 total, 0 missing file(s) > intel-compilers-common: 104 total, 0 missing file(s) > jre_beta: 825 total, 0 missing file(s) > kcachegrind: 60 total, 0 missing file(s) > libcnbj: 36 total, 0 missing file(s) > metasploit3: 16330 total, 0 missing file(s) > mixxx: 2072 total, 0 missing file(s) > munin-node: 159 total, 0 missing file(s) > picasa-beta: 1133 total, 0 missing file(s) > pstocanonbj: 24 total, 0 missing file(s) > python-markdown: 65 total, 0 missing file(s) > rng-tools: 15 total, 0 missing file(s) > tkinfo: 9 total, 0 missing file(s) > weka: 11 total, 0 missing file(s) > > OK, that last one looks a bit silly with the paths at the top, doesn't it. Any > ideas? I'd be fine with showing the 0 errors lines all the time, it would just > require some grep foo for people to screen those out. That way, you can do > things like this (note that the output is slightly edited from what this patch > will produce, it is showing the output even with 0 missing files): > > ''''' > $ ./src/pacman/pacman -Qiik pacman-git > Name : pacman-git > Version : 20090715-1 > URL : http://www.archlinux.org/pacman/ > Licenses : GPL > Groups : None > Provides : pacman=3.2.2 > Depends On : gcc-libs bash libarchive>=2.6.0 libfetch > pacman-mirrorlist > Optional Deps : fakeroot: for makepkg usage as normal user > python: for rankmirrors script usage > Required By : pacman-contrib pkgstats > Conflicts With : pacman > Replaces : None > Installed Size : 2036.00 K > Packager : Dan McGee <[email protected]> > Architecture : x86_64 > Build Date : Wed 15 Jul 2009 09:15:00 PM CDT > Install Date : Wed 15 Jul 2009 11:40:07 PM CDT > Install Reason : Explicitly installed > Install Script : No > Description : A library-based package manager with dependency support > Backup Files: > MODIFIED /etc/pacman.conf > MODIFIED /etc/makepkg.conf > > pacman-git: 114 total, 0 missing file(s) > ''''' > > -Dan >
Indeed, this is much better without the progressbar, I didn't like either that we couldn't use display :) But I am not sure about the --verbose output. This would be the only option affected by verbose, which is currently only used to display the paths. But well, maybe it is fine. _______________________________________________ pacman-dev mailing list [email protected] http://www.archlinux.org/mailman/listinfo/pacman-dev
