projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
900cbb7
)
Use argvAddNum() for passing package count numbers for scriptlets
author
Panu Matilainen
<pmatilai@redhat.com>
Mon, 14 Apr 2008 13:22:28 +0000
(16:22 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Mon, 14 Apr 2008 13:22:28 +0000
(16:22 +0300)
lib/psm.c
patch
|
blob
|
history
diff --git
a/lib/psm.c
b/lib/psm.c
index
12b5068
..
6b7a5cb
100644
(file)
--- a/
lib/psm.c
+++ b/
lib/psm.c
@@
-699,16
+699,10
@@
static rpmRC runScript(rpmpsm psm, Header h, rpmTag stag, ARGV_t * argvp,
}
if (arg1 >= 0) {
- char *av = NULL;
- rasprintf(&av, "%d", arg1);
- argvAdd(argvp, av);
- free(av);
+ argvAddNum(argvp, arg1);
}
if (arg2 >= 0) {
- char *av = NULL;
- rasprintf(&av, "%d", arg2);
- argvAdd(argvp, av);
- free(av);
+ argvAddNum(argvp, arg2);
}
}