[Rpm-maint] [rpm-software-management/rpm] Export rpmGlob() to Lua (PR #2526)
Michal Domonkos
notifications at github.com
Tue May 30 08:11:23 UTC 2023
@dmnks 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;
Oh, I didn't mean to use "n" of course, but to make "c" mean "don't enable RPMGLOB_NOCHECK" :smile: But since that should be what most callers want by default, most callers would have to include "c" in there... which, otoh, may not be that terrible?
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2526#discussion_r1209887767
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/2526/review/1450360422 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230530/2f1d6967/attachment-0001.html>
More information about the Rpm-maint
mailing list