diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-11-30 06:53:10 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-11-30 06:53:10 -0500 |
| commit | 77f9ffb2de1e88fcce24c4ee420731b3147a1bc6 (patch) | |
| tree | 95e0ac2a0f4e1dc9133ab6488ca757d04d9365af | |
| parent | 824f61bdabed8618368cbb42e6974bf44bf2ef10 (diff) | |
| download | sbo-maintainer-tools-77f9ffb2de1e88fcce24c4ee420731b3147a1bc6.tar.gz | |
find_installed_removed: replace tab indents with 2 spaces each.
| -rwxr-xr-x | find_installed_removed | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/find_installed_removed b/find_installed_removed index a4e21ee..2a3f168 100755 --- a/find_installed_removed +++ b/find_installed_removed @@ -2,7 +2,7 @@ ($SELF = $0) =~ s,.*/,,; if(@ARGV) { - print <<EOF; + print <<EOF; $SELF - find installed SBo packages that are not in the SBo repo Usage: $SELF @@ -27,7 +27,7 @@ SLACKVER in the environment to check a different version. To use an alternate package database directory (other than /var/log/packages), set PKGDIR in the environment. EOF - exit 0; + exit 0; } # TODO: get this from /etc/slackware-version or /etc/os-release @@ -40,23 +40,23 @@ $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 | gzip -dc |" or die $!; while(<$pipe>) { - chomp; - next unless m{^SLACKBUILD NAME: (.*)$}; - $in_repo{$1}++; + chomp; + next unless m{^SLACKBUILD NAME: (.*)$}; + $in_repo{$1}++; } close $pipe; $count = 0; for(sort keys %installed) { - $count++, print "$_\n" unless $in_repo{$_}; + $count++, print "$_\n" unless $in_repo{$_}; } exit ($count != 0); |
