]> git.pld-linux.org Git - packages/adapter.git/commitdiff
Remove field argument to replace_requires, it is not used
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 7 Mar 2021 09:50:56 +0000 (11:50 +0200)
committerElan Ruusamäe <glen@pld-linux.org>
Sun, 7 Mar 2021 09:51:08 +0000 (11:51 +0200)
adapter.awk

index c21a032ce99c88bb46fa8341500433832ee35b39..275876d0f95fab63e247b2dfb46f29e0a410d5d0 100644 (file)
@@ -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);
This page took 1.688748 seconds and 4 git commands to generate.