git://project.juiblex.co.uk
/
razor2.git/.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
749f604
)
Don't install files if package has no files.
author
Kristian Høgsberg
<krh@redhat.com>
Mon, 7 Apr 2008 04:56:16 +0000 (
00:56
-0400)
committer
Kristian Høgsberg
<krh@redhat.com>
Mon, 7 Apr 2008 04:56:16 +0000 (
00:56
-0400)
rpm.c
patch
|
blob
|
history
diff --git
a/rpm.c
b/rpm.c
index
ea199c5
..
58e0960
100644
(file)
--- a/
rpm.c
+++ b/
rpm.c
@@
-495,7
+495,7
@@
razor_rpm_install(struct razor_rpm *rpm, const char *root)
mode = razor_rpm_get_indirect(rpm, RPMTAG_FILEMODES, &count);
flags = razor_rpm_get_indirect(rpm, RPMTAG_FILEFLAGS, &count);
- for (i = 0; i < count; i++) {
+ for (i = 0; name && i < count; i++) {
dir = rpm->dirs[ntohl(*index)];
/* Skip past the cpio header block unless it's a ghost file,