File: find_bastille_affected_files.pl

package info (click to toggle)
bastille 1%3A2.1.1-13
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,376 kB
  • ctags: 514
  • sloc: perl: 13,477; sh: 2,199; ansic: 951; makefile: 195; csh: 17; python: 9
file content (27 lines) | stat: -rwxr-xr-x 544 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/perl


 
use lib "/usr/lib";
push (@INC,"/usr/lib/perl5/site_perl/");
push (@INC,"/usr/lib/Bastille");  

use Bastille::API;

foreach $key (keys(%GLOBAL_BIN)) {
	unless ( -e $GLOBAL_BIN{$key} ) {
		print "Missing file for key $key\n";
	}
}

foreach $key (keys(%GLOBAL_FILE)) {
        unless ( -e $GLOBAL_FILE{$key} ) {
                print "Missing file for key $key\n";
        }
}
foreach $key (keys(%GLOBAL_DIR)) {
        unless ( -d $GLOBAL_DIR{$key} ) {
                print "Missing directory for key $key\n";
        }
}