commit a0af1ef5ca4ed8c5095cf876b3b388c3e1406b91
Author: Elan Ruusamäe <[email protected]>
Date:   Sun Mar 7 11:50:56 2021 +0200

    Remove field argument to replace_requires, it is not used

 adapter.awk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index c21a032..275876d 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -750,11 +750,11 @@ preamble == 1 {
                        next
                }
 
-               replace_requires(field)
+               replace_requires()
        }
 
        if (field == "requires:" || field ~ /^requires\(/ || field == 
"suggests:") {
-               replace_requires(field)
+               replace_requires()
        }
 
 
@@ -2242,7 +2242,7 @@ function replace_pythonegg(pkg,    cmd, line) {
 # }}}
 
 # {{{ replace_requires
-function replace_requires(field,   pkg) {
+function replace_requires(pkg) { # "pkg' is local variable, not an argument
        # strip %{?_isa}
        if ($2 ~ /_isa/) {
                $2 = fixedsub("%{?_isa}", "", $2);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/f109b86611f0be73ab5d8ed5fd8d26618c2ac705

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to