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:
0f8102c
)
Convert Epoch parsing to use parseUnsignedNum()
author
Jindrich Novy
<jnovy@redhat.com>
Tue, 1 Jul 2008 10:42:12 +0000
(12:42 +0200)
committer
Jindrich Novy
<jnovy@redhat.com>
Tue, 1 Jul 2008 10:54:13 +0000
(12:54 +0200)
build/parsePreamble.c
patch
|
blob
|
history
diff --git
a/build/parsePreamble.c
b/build/parsePreamble.c
index
d5ea09f
..
3f944ed
100644
(file)
--- a/
build/parsePreamble.c
+++ b/
build/parsePreamble.c
@@
-592,10
+592,10
@@
static int handlePreambleTag(rpmSpec spec, Package pkg, rpmTag tag,
break;
case RPMTAG_EPOCH: {
SINGLE_TOKEN_ONLY;
-
in
t epoch;
- if (parseNum(field, &epoch)) {
+
uint32_
t epoch;
+ if (parse
Unsigned
Num(field, &epoch)) {
rpmlog(RPMLOG_ERR,
- _("line %d: Epoch field must be a number: %s\n"),
+ _("line %d: Epoch field must be a
n unsigned
number: %s\n"),
spec->lineNum, spec->line);
return RPMRC_FAIL;
}