@@ -122,6 +122,10 @@ sub getDeps {
122
122
my @desc ;
123
123
foreach my $p ( keys %pkgs ) {
124
124
my @f ;
125
+ unless ( exists $file {$p } ) {
126
+ print " No file for package $p found found.\n " if $verbose ;
127
+ next ;
128
+ }
125
129
push @f , " $root /$file {$p }" ;
126
130
127
131
if ( exists $lic {$p } ) {
@@ -174,9 +178,19 @@ sub getDeps {
174
178
print O " INSTALLED.DB 2\n " ;
175
179
176
180
foreach my $pn ( keys %pkgs ) {
177
- $p = $file {$pn };
181
+ my $p = $file {$pn };
182
+ unless ( defined $p ) {
183
+ print " No package found for $pn \n " if $verbose ;
184
+ next ;
185
+ }
186
+
178
187
$p =~ s # ^.*/# $packages /# ;
179
188
189
+ unless ( -r $p ) {
190
+ print " Package $p not found.\n " if $verbose ;
191
+ next ;
192
+ }
193
+
180
194
print O " $pn $p 0\n " ;
181
195
182
196
print " Unpacking $p ...\n " if $verbose ;
@@ -288,8 +302,8 @@ sub getDeps {
288
302
$version = " $major .$minor .$patch " unless defined $version ;
289
303
290
304
unless ( defined $binary ) {
291
- if ( -f " binary- $archpostfix$version " ) {
292
- open P, " binary- $archpostfix$version " ;
305
+ if ( -f " binary$archpostfix - $version " ) {
306
+ open P, " binary$archpostfix - $version " ;
293
307
$binary = <P>;
294
308
close P;
295
309
$binary ++;
@@ -386,7 +400,7 @@ sub getDeps {
386
400
system $cmd ;
387
401
die " running nsis failed" if $? ;
388
402
389
- open P, " >osgeo4w/binary- $archpostfix$version " ;
403
+ open P, " >osgeo4w/binary$archpostfix - $version " ;
390
404
print P $binary ;
391
405
close P;
392
406
0 commit comments