[Rpm-maint] [rpm-software-management/rpm] Export rpmGlob() to Lua (PR #2526)
Panu Matilainen
notifications at github.com
Tue May 30 08:03:53 UTC 2023
@pmatilai commented on this pull request.
> @@ -883,6 +883,30 @@ static int rpm_unsplitargs(lua_State *L)
return 1;
}
+static int rpm_glob(lua_State *L)
+{
+ const char *pat = luaL_checkstring(L, 1);
+ rpmglobFlags flags = RPMGLOB_NONE;
+ int argc = 0;
+ ARGV_t argv = NULL;
+
+ if (luaL_optstring(L, 2, "c"))
+ flags |= RPMGLOB_NOCHECK;
Yup, see my earlier comment about that, "c" is kinda misleading but there could be more than one such disabler so we'd run out of "n"'s real fast :smile:
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2526#discussion_r1209876601
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/2526/review/1450346616 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230530/98948f13/attachment.html>
More information about the Rpm-maint
mailing list