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:
05a3d00
)
Make depflagsFormat() accept any numeric type
author
Panu Matilainen
<pmatilai@redhat.com>
Mon, 17 Nov 2008 10:44:57 +0000
(12:44 +0200)
committer
Panu Matilainen
<pmatilai@redhat.com>
Mon, 17 Nov 2008 10:44:57 +0000
(12:44 +0200)
lib/formats.c
patch
|
blob
|
history
diff --git
a/lib/formats.c
b/lib/formats.c
index
4b93b06
..
c51a541
100644
(file)
--- a/
lib/formats.c
+++ b/
lib/formats.c
@@
-533,14
+533,12
@@
static char * pgpsigFormat(rpmtd td, char * formatPrefix)
static char * depflagsFormat(rpmtd td, char * formatPrefix)
{
char * val = NULL;
- char buf[10];
- rpmsenseFlags anint;
- if (rpmtd
Type(td) != RPM_INT32_TYPE
) {
+ if (rpmtd
Class(td) != RPM_NUMERIC_CLASS
) {
val = xstrdup(_("(not a number)"));
} else {
-
rpm_flag_t *rf = rpmtdGetUint32
(td);
-
anint = *rf
;
+
uint64_t anint = rpmtdGetNumber
(td);
+
char buf[10]
;
buf[0] = '\0';
if (anint & RPMSENSE_LESS)