diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-09-10 06:39:11 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-09-10 06:39:11 -0400 |
| commit | 3ca437c696799b097d544c4c5d6888f84caae74c (patch) | |
| tree | 58d819f8a23a2f5a7fd0a69aeb7445a0ab25656a | |
| parent | 747e1219b178fa8a0da26528012c5d7e861e0b89 (diff) | |
| download | sbostuff-3ca437c696799b097d544c4c5d6888f84caae74c.tar.gz | |
findpkgconflicts.pl: tweak usage message.
| -rwxr-xr-x | findpkgconflicts.pl | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/findpkgconflicts.pl b/findpkgconflicts.pl index 8ae767a..355e2e8 100755 --- a/findpkgconflicts.pl +++ b/findpkgconflicts.pl @@ -2,15 +2,21 @@ ($SELF = $0) =~ s,.*/,,; +$PKGDIR="/var/log/packages"; + sub usage() { print <<EOF; Usage: $SELF [-s] -Finds conflicting files in Slackware packages. +Finds conflicting files in Slackware packages, by looking at +the package database in $PKGDIR. Options: -s Ignore 3rd-party packages (core Slackware only). -a Include aaa_* packages and openssl-solibs (normally ignored). + +Environment: + PACKAGE_DIR - directory to use instead of $PKGDIR EOF exit 0; } @@ -26,7 +32,7 @@ for(@ARGV) { die "Unknown argument '$_', try --help.\n"; } -$pkgdir = $ENV{PACKAGE_DIR} || "/var/log/packages"; +$pkgdir = $ENV{PACKAGE_DIR} || $PKGDIR; chdir $pkgdir or die "$!\n"; |
