mirror of
https://github.com/webmin/webmin.git
synced 2025-08-16 14:51:18 +00:00
More strict/warn fixes
This commit is contained in:
@ -233,7 +233,7 @@ system("/bin/rm -rf /tmp/makemodulerpm");
|
||||
# Build list of dependencies on other RPMs, for inclusion as an RPM
|
||||
# Requires: header
|
||||
my $rdeps;
|
||||
if ($rpmdepends) {
|
||||
if ($rpmdepends && defined($minfo{'depends'})) {
|
||||
my @rdeps;
|
||||
foreach my $d (split(/\s+/, $minfo{'depends'})) {
|
||||
my ($dwebmin, $dmod, $dver);
|
||||
@ -271,6 +271,8 @@ my $urlheader = $url ? "URL: $url" : "";
|
||||
my $epochheader = $epoch ? "Epoch: $epoch" : "";
|
||||
$force_theme //= "";
|
||||
$istheme //= "";
|
||||
$rdeps //= "";
|
||||
$depends //= "";
|
||||
open(my $SPEC, ">", "$spec_dir/$prefix$mod.spec");
|
||||
print $SPEC <<EOF;
|
||||
%define __spec_install_post %{nil}
|
||||
|
Reference in New Issue
Block a user