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:
82636fb
)
unlink() before writing RPM
author
marc
<devnull@localhost>
Sun, 24 May 1998 22:38:40 +0000
(22:38 +0000)
committer
marc
<devnull@localhost>
Sun, 24 May 1998 22:38:40 +0000
(22:38 +0000)
CVS patchset: 2125
CVS date: 1998/05/24 22:38:40
build/pack.c
patch
|
blob
|
history
diff --git
a/build/pack.c
b/build/pack.c
index
ed16dde
..
0855d17
100644
(file)
--- a/
build/pack.c
+++ b/
build/pack.c
@@
-201,6
+201,7
@@
static int writeRPM(Header header, char *fileName, int type,
close(fd);
/* Open the output file */
+ unlink(fileName);
if ((fd = open(fileName, O_WRONLY|O_CREAT|O_TRUNC, 0644)) == -1) {
rpmError(RPMERR_CREATE, "Could not open %s\n", fileName);
unlink(sigtarget);