From 06320f2862ea9d9dfc3190b685d46305047e8f8a Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Wed, 14 Jun 2017 15:05:06 -0700 Subject: [PATCH] Remove unused script The packfsck.pl is unused, so we can safely remove it from the repo. Signed-off-by: Patrick McCarty --- packfsck.pl | 82 ----------------------------------------------------- 1 file changed, 82 deletions(-) delete mode 100755 packfsck.pl diff --git a/packfsck.pl b/packfsck.pl deleted file mode 100755 index f981221..0000000 --- a/packfsck.pl +++ /dev/null @@ -1,82 +0,0 @@ -#!/usr/bin/perl -w -# -# -# arguments: -# perl packfsck.pl - - -my $target = $ARGV[0]; -system("rm /tmp/Manifest"); -system("wget --quiet --output-document=/tmp/Manifest https://download.clearlinux.org/update/$target/Manifest.os-core"); - - -my $from = $target; -while ($from > $target - 100) { - $from = $from - 10; - print "Testing the $from-$target pack\n"; - system("rm /tmp/pack.tar"); - system("wget --quiet ---output-document=/tmp/pack.tar https://download.clearlinux.org/update/$target/pack-os-core-from-$from.tar"); - - - - open FILE, ") { - my $line = $_; - - - if ($line =~ /(^[FDLr\.]+)\s*([0-9a-f]+)\s*([0-9]+)\s*+(.*)\n/) { - my $type = $1; - my $hash = $2; - my $version = $3; - my $filename = $4; - if ($version > $from) { - $expected_hashes{"$hash"} = 1; - $files{"$hash"} = $filename; -# print "$1 - $2 - $3 - $4\n"; - } - } - } - close FILE; - - - open FILE2, "-|", "tar -tf /tmp/pack.tar 2> /dev/null"; - - while () { - my $line = $_; - - - if ($line =~ /^\.\/delta\/[0-9]+.[0-9]+.([0-9a-f]+)/) { - my $hash = $1; - if (!defined($expected_hashes{"$hash"})) { - print "\tUnexpected delta hash found $hash\n"; - } - $expected_hashes{"$hash"} = 2; - } - if ($line =~ /\.\/staged\/([0-9a-f]+)/) { - my $hash = $1; - if (!defined($expected_hashes{"$hash"})) { - print "\tUnexpected staged hash found $hash\n"; - } - $expected_hashes{"$hash"} = 2; - } - } - close FILE2; - - my $count = 0; - foreach my $key ( keys %expected_hashes ) - { - my $value = $expected_hashes{$key}; - if ($value eq 1) { - my $fn = $files{$key}; - print "\tFile $fn ($key) is not in the pack\n"; - $count = $count = 1; - } - } - if ($count < 1) { - print "\tThe $from-$target pack has no files missing\n"; - } -}