summaryrefslogtreecommitdiff
path: root/python/rpmmacro-py.c
diff options
context:
space:
mode:
authorxuhy <huayong.xu@samsung.com>2023-11-16 17:39:20 +0800
committerxuhy <huayong.xu@samsung.com>2023-11-16 17:39:20 +0800
commit76ea0b5d4a1b8180f2552c2729d84388a77beecb (patch)
tree9a2b028c24c205b075d9386acd7a62a2eb2271a7 /python/rpmmacro-py.c
parentc30d127e8780dc678168ee121b9f2eeb1a8aaafa (diff)
downloadlibrpm-tizen-76ea0b5d4a1b8180f2552c2729d84388a77beecb.tar.gz
librpm-tizen-76ea0b5d4a1b8180f2552c2729d84388a77beecb.tar.bz2
librpm-tizen-76ea0b5d4a1b8180f2552c2729d84388a77beecb.zip
Add librpm-tizen.spec file & Debian packaging.HEADmasterdevel
The following issues are fixed: 1. Prevent execution of arbitrary scripts 2. Enable dash(-) in spec file. 3. Ignore bad expressions in %if conditionals. 4. Ignore unknown tags. 5. Ignore error macro. Change-Id: Id5b7b47c1a78de364ef0d513023fbe9ccc773a87 Signed-off-by: xuhy <huayong.xu@samsung.com>
Diffstat (limited to 'python/rpmmacro-py.c')
-rw-r--r--python/rpmmacro-py.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/rpmmacro-py.c b/python/rpmmacro-py.c
index 3cb1a51f5..d8a365547 100644
--- a/python/rpmmacro-py.c
+++ b/python/rpmmacro-py.c
@@ -52,7 +52,7 @@ rpmmacro_ExpandMacro(PyObject * self, PyObject * args, PyObject * kwds)
if (rpmExpandMacros(NULL, macro, &str, 0) < 0)
PyErr_SetString(pyrpmError, "error expanding macro");
else
- res = Py_BuildValue("s", str);
+ res = utf8FromString(str);
free(str);
}
return res;