[Rpm-maint] [rpm-software-management/rpm] rpm --rebuilddb depends on the optional buildtime tag and breaks if a package without it is present (Issue #2527)

2023-05-30 Thread Daniel Alley
`RPMTAG_BUILDTIME` is considered by all documentation I've seen so far to be an optional, informational tag as opposed to a mandatory one. However, `rpm --rebuilddb` will encounter issues if an RPM missing the buildtime tag is installed. A "sanity check" is done on all installed packages [ensu

Re: [Rpm-maint] [rpm-software-management/rpm] Export rpmGlob() to Lua (PR #2526)

2023-05-30 Thread Panu Matilainen
Merged #2526 into master. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/2526#event-9375913274 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint maili

Re: [Rpm-maint] [rpm-software-management/rpm] Export rpmGlob() to Lua (PR #2526)

2023-05-30 Thread Panu Matilainen
Okay, I'll just hit merge then. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/2526#issuecomment-1568068683 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm

Re: [Rpm-maint] [rpm-software-management/rpm] Make user/group info reliable operation across chroot (PR #2503)

2023-05-30 Thread Panu Matilainen
Should also fix #1789 for real -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/2503#issuecomment-1568057810 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-

Re: [Rpm-maint] [rpm-software-management/rpm] Export rpmGlob() to Lua (PR #2526)

2023-05-30 Thread Michal Domonkos
@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; + +

Re: [Rpm-maint] [rpm-software-management/rpm] Export rpmGlob() to Lua (PR #2526)

2023-05-30 Thread Michal Domonkos
@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; + +

Re: [Rpm-maint] [rpm-software-management/rpm] Export rpmGlob() to Lua (PR #2526)

2023-05-30 Thread Panu Matilainen
@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; +

Re: [Rpm-maint] [rpm-software-management/rpm] Export rpmGlob() to Lua (PR #2526)

2023-05-30 Thread Michal Domonkos
@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; + +

Re: [Rpm-maint] [rpm-software-management/rpm] Export rpmGlob() to Lua (PR #2526)

2023-05-30 Thread Michal Domonkos
> Bitwise flags would be rpm-native of course, but it doesn't seem very Lua. > Bitwise operators were only added to the language in Lua 5.3, so we'd even > have to bump our version requirement for that. Oh, right, I didn't think that far :smile: > The closest thing to a "flags" argument in the

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: %{rpmversion} macro (Issue #2523)

2023-05-30 Thread Panu Matilainen
Closed #2523 as completed via #2525. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/2523#event-9374869022 You are receiving this because you are subscribed to this thread. Message ID: ___ Rp

Re: [Rpm-maint] [rpm-software-management/rpm] Add %{rpmversion} builtin macro for getting the running rpm version (PR #2525)

2023-05-30 Thread Panu Matilainen
Merged #2525 into master. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/2525#event-9374868791 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint maili

Re: [Rpm-maint] [rpm-software-management/rpm] Export rpmGlob() to Lua (PR #2526)

2023-05-30 Thread Panu Matilainen
And done. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/2526#issuecomment-1567914940 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint mailing list Rp

Re: [Rpm-maint] [rpm-software-management/rpm] Export rpmGlob() to Lua (PR #2526)

2023-05-30 Thread Panu Matilainen
@pmatilai pushed 1 commit. 99988cd97d4820c75d3872fd254733a065d6efd0 Export rpmGlobPath() to Lua as rpm.glob() -- View it on GitHub: https://github.com/rpm-software-management/rpm/pull/2526/files/3887e9e78a9054897d4da0d046787a31897c1cfe..99988cd97d4820c75d3872fd254733a065d6efd0 You are receivin

Re: [Rpm-maint] [rpm-software-management/rpm] Export rpmGlob() to Lua (PR #2526)

2023-05-30 Thread Panu Matilainen
Indeed: https://www.lua.org/manual/5.4/manual.html#luaL_checkoption > This is a useful function for mapping strings to C enums. (The usual > convention in Lua libraries is to use strings instead of numbers to select > options.) -- Reply to this email directly or view it on GitHub: https://git

Re: [Rpm-maint] [rpm-software-management/rpm] Export rpmGlob() to Lua (PR #2526)

2023-05-30 Thread Panu Matilainen
Bitwise flags would be rpm-native of course, but it doesn't seem very Lua. Bitwise operators were only added to the language in Lua 5.3, so we'd even have to bump our version requirement for that. The closest thing to a "flags" argument in the standard library I could think of is https://www.lu