summaryrefslogtreecommitdiffstats
path: root/perl-install/c
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/c')
-rw-r--r--perl-install/c/Makefile2
-rw-r--r--perl-install/c/stuff.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/c/Makefile b/perl-install/c/Makefile
index 16f42def5..cd8256d97 100644
--- a/perl-install/c/Makefile
+++ b/perl-install/c/Makefile
@@ -3,7 +3,7 @@
stuff: %: %.xs
test -e Makefile_c || C_RPM=1 perl Makefile.PL
$(MAKE) -f Makefile_c
- rm ../auto/c ; ln -s ../c/blib/arch/auto ../auto/c
+ rm -f ../auto/c ; ln -s ../c/blib/arch/auto ../auto/c
clean:
test ! -e Makefile_c || $(MAKE) -f Makefile_c clean
diff --git a/perl-install/c/stuff.pm b/perl-install/c/stuff.pm
index ad5cf316d..70f2b3222 100644
--- a/perl-install/c/stuff.pm
+++ b/perl-install/c/stuff.pm
@@ -14,7 +14,7 @@ bootstrap c::stuff $VERSION;
sub headerGetEntry {
my ($h, $q) = @_;
-
+ $h or log::l("empty header in headerGetEntry"), return;
$q eq 'name' and return headerGetEntry_string($h, RPMTAG_NAME());
$q eq 'group' and return headerGetEntry_string($h, RPMTAG_GROUP());
$q eq 'version' and return headerGetEntry_string($h, RPMTAG_VERSION());