aboutsummaryrefslogtreecommitdiff
path: root/find_installed_orphans
diff options
context:
space:
mode:
Diffstat (limited to 'find_installed_orphans')
-rwxr-xr-xfind_installed_orphans18
1 files changed, 9 insertions, 9 deletions
diff --git a/find_installed_orphans b/find_installed_orphans
index 4a9f3c0..6b39ce1 100755
--- a/find_installed_orphans
+++ b/find_installed_orphans
@@ -2,7 +2,7 @@
($SELF = $0) =~ s,.*/,,;
if(@ARGV) {
- print <<EOF;
+ print <<EOF;
$SELF - find installed SBo orphan packages
Usage: $SELF
@@ -20,7 +20,7 @@ is no output), or 1 (failure) if any orphans are installed.
To use an alternate package database directory (other than
/var/log/packages), set PKGDIR in the environment.
EOF
- exit 0;
+ exit 0;
}
$URL = 'https://slackbuilds.org/advsearch.php?stype=maint&q=NOEMAIL';
@@ -29,17 +29,17 @@ $PKGDIR = $ENV{PKGDIR} || "/var/log/packages";
chdir $PKGDIR || die "can't cd to $PKGDIR: $!\n";
for(<*_SBo>) {
- my $r = reverse;
- my @a = split /-/, $r, 4;
- my $pkg = reverse $a[3];
- $installed{$pkg}++;
+ my $r = reverse;
+ my @a = split /-/, $r, 4;
+ my $pkg = reverse $a[3];
+ $installed{$pkg}++;
}
open my $pipe, "-|", "wget", "-qO-", "$URL" or die $!;
while(<$pipe>) {
- next unless m{a href="/repository/[\d.]+/\w+/(\S+)/">};
- $count++;
- print "$1\n" if $installed{$1};
+ next unless m{a href="/repository/[\d.]+/\w+/(\S+)/">};
+ $count++;
+ print "$1\n" if $installed{$1};
}
exit ($count != 0);