RPM Package Manager, CVS Repository
http://rpm5.org/cvs/
____________________________________________________________________________
Server: rpm5.org Name: Ralf S. Engelschall
Root: /v/rpm/cvs Email: rse@rpm5.org
Module: rpm Date: 24-Jan-2008 21:44:57
Branch: HEAD Handle: 2008012420445601
Modified files:
rpm CHANGES
rpm/rpmio rpmlua.c
Log:
Add RPM Lua function rpm.debug() to complement rpm.verbose()
Summary:
Revision Changes Path
1.2090 +1 -0 rpm/CHANGES
2.46 +9 -0 rpm/rpmio/rpmlua.c
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: rpm/CHANGES
============================================================================
$ cvs diff -u -r1.2089 -r1.2090 CHANGES
--- rpm/CHANGES 24 Jan 2008 19:21:47 -0000 1.2089
+++ rpm/CHANGES 24 Jan 2008 20:44:56 -0000 1.2090
@@ -1,4 +1,5 @@
5.0.0 -> 5.1a1:
+ - rse: add RPM Lua function rpm.debug() to complement rpm.verbose()
- mej: catch EOF returned as RPMRC_NOTFOUND correctly.
- rse: add support for QNX by adjusting to its 3-parameter based makedev(2)
- jbj: resurrect rpm.spec.in.
@@ .
patch -p0 <<'@@ .'
Index: rpm/rpmio/rpmlua.c
============================================================================
$ cvs diff -u -r2.45 -r2.46 rpmlua.c
--- rpm/rpmio/rpmlua.c 20 Jan 2008 11:13:41 -0000 2.45
+++ rpm/rpmio/rpmlua.c 24 Jan 2008 20:44:57 -0000 2.46
@@ -987,6 +987,14 @@
return 1;
}
+static int rpm_debug(lua_State *L)
+ /*@globals internalState @*/
+ /*@modifies L, internalState @*/
+{
+ lua_pushboolean(L, rpmIsDebug());
+ return 1;
+}
+
static int rpm_slurp(lua_State *L)
/*@globals fileSystem, internalState @*/
/*@modifies L, fileSystem, internalState @*/
@@ -1063,6 +1071,7 @@
{"source", rpm_source},
{"load", rpm_load},
{"verbose", rpm_verbose},
+ {"debug", rpm_debug},
{"slurp", rpm_slurp},
{"sleep", rpm_sleep},
{"realpath", rpm_realpath},
@@ .
Received on Thu Jan 24 21:44:57 2008