-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filter Lua deprecation warnings based on the originating rpm version
Issuing deprecation warnings on packages built long time ago is just antisocial behavior when the user is powerless to do anything about it. When running scripts, pass the builder rpm version to Lua through the registry, and filter out the warnings when the package was built with an rpm version where these functions were not yet deprecated. Usage through rpmlua and macros always gets warnings: those are things that can technically be fixed by the user.
- Loading branch information
Showing
7 changed files
with
83 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Name: luafork | ||
Version: 1.0 | ||
Release: 1 | ||
License: Public domain | ||
Summary: Testing Lua fork behavior | ||
BuildArch: noarch | ||
|
||
%description | ||
%{summary} | ||
|
||
%pre -p <lua> | ||
local pid = posix.fork() | ||
if pid == 0 then | ||
io.stdout:write("child\n") | ||
os.exit(0) | ||
elseif pid > 0 then | ||
posix.wait(pid) | ||
else | ||
io.stderr:write("fork failed") | ||
end | ||
|
||
%files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters