[Rpm-maint] [rpm-software-management/rpm] "load" does not work with RPM 4.16.90 (#1669)

Jun Aruga notifications at github.com
Thu May 6 12:52:59 UTC 2021


@pmatilai I am seeing `doc/manual/lua.md` and https://rpm.org/user_doc/lua.html . Sorry could you tell me what's wrong in the following code?

```
%load_if_exists(path) %{lua:
  if posix.access(arg.path, "r") then 
    print("Loading " .. arg.path .. "..")
    load(arg.path)
  end  
}

%load_if_exists %{SOURCE4}
```

```
$ fedpkg --release rawhide srpm
error: lua script failed: [string "<lua>"]:2: attempt to index a nil value (global 'arg')
error: query of specfile /home/jaruga/git/pkg/fed/ruby/ruby.spec failed, can't parse
```




-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1669#issuecomment-833497556
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210506/de3fdb23/attachment.html>


More information about the Rpm-maint mailing list