projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7930169
)
Use HEADER_MAGIC_FOO enums instead of 0/1 in python header code
author
Panu Matilainen
<pmatilai@redhat.com>
Wed, 22 Sep 2010 06:46:25 +0000
(09:46 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Wed, 22 Sep 2010 06:46:25 +0000
(09:46 +0300)
python/header-py.c
patch
|
blob
|
history
diff --git
a/python/header-py.c
b/python/header-py.c
index
5da946c
..
5eb8dd8
100644
(file)
--- a/
python/header-py.c
+++ b/
python/header-py.c
@@
-165,7
+165,7
@@
static PyObject * hdrUnload(hdrObject * s, PyObject * args, PyObject *keywords)
h = headerCopy(s->h); /* XXX strip region tags, etc */
headerFree(s->h);
}
- len = headerSizeof(h,
0
);
+ len = headerSizeof(h,
HEADER_MAGIC_NO
);
buf = headerUnload(h);
h = headerFree(h);
@@
-268,7
+268,7
@@
static PyObject *hdrConvert(hdrObject *self, PyObject *args, PyObject *kwds)
static PyObject * hdrWrite(hdrObject *s, PyObject *args, PyObject *kwds)
{
char *kwlist[] = { "file", "magic", NULL };
- int magic =
1
;
+ int magic =
HEADER_MAGIC_YES
;
rpmfdObject *fdo = NULL;
int rc;