patch defined array
This commit is contained in:
parent
bbeb24fb38
commit
17474f6d2f
@ -4,8 +4,7 @@
|
||||
|
||||
## Description
|
||||
|
||||
<br />*This description has been generated by an LLM AI system and cannot be relied on to be fully correct.*
|
||||
*Once it has been checked, then this comment will be deleted*
|
||||
<br />
|
||||
|
||||
Perl-Unix-ConfigFile is a Perl module that provides a simple interface to parse configuration files of a Unix-type system. It reads and writes configuration files in a very flexible and easy to use format and provides methods to access and modify the data in the configuration file. It supports basic features such as comments, variable interpolation, and hierarchical data structures.
|
||||
|
||||
Home Page : https://metacpan.org/dist/Unix-ConfigFile
|
||||
Bug Tracker : https://rt.cpan.org/Public/Dist/Display.html?Name=Unix-ConfigFile
|
||||
|
12
perl-Unix-ConfigFile-defined.patch
Normal file
12
perl-Unix-ConfigFile-defined.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -Nur Unix-ConfigFile-0.06.old/AliasFile.pm Unix-ConfigFile-0.06/AliasFile.pm
|
||||
--- Unix-ConfigFile-0.06.old/AliasFile.pm 2000-05-02 11:50:43.000000000 -0400
|
||||
+++ Unix-ConfigFile-0.06/AliasFile.pm 2024-03-11 16:12:49.412000000 -0400
|
||||
@@ -213,7 +213,7 @@
|
||||
}
|
||||
my $name = $1;
|
||||
my @users = $this->alias($name);
|
||||
- next if !defined @users;
|
||||
+ next if !@users;
|
||||
print $fh $this->joinwrap(80, "$name: ", "\t", ",", ",", @users), "\n"
|
||||
or return 0;
|
||||
}
|
@ -1,11 +1,12 @@
|
||||
Name: perl-Unix-ConfigFile
|
||||
Version: 0.06
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Perl interface to various Unix configuration files
|
||||
License: CHECK(GPL+ or Artistic)
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/Unix-ConfigFile/
|
||||
Source0: http://www.cpan.org/authors/id/S/SS/SSNODGRA/Unix-ConfigFile-%{version}.tar.gz
|
||||
Patch0: perl-Unix-ConfigFile-defined.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
@ -25,6 +26,7 @@ own module.
|
||||
|
||||
%prep
|
||||
%setup -q -n Unix-ConfigFile-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
@ -53,6 +55,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Mon Mar 11 2024 Jean-Philippe Pialasse <tests@pialasse.com> 0.06-2
|
||||
- fix cpan 103189 bug with defined @array
|
||||
|
||||
* Fri Jul 14 2023 BogusDateBot
|
||||
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
|
||||
by assuming the date is correct and changing the weekday.
|
||||
|
Loading…
Reference in New Issue
Block a user