]> git.pld-linux.org Git - packages/poldek.git/blame - poldek-vf_append.patch
- choose equivalents manually
[packages/poldek.git] / poldek-vf_append.patch
CommitLineData
5f1dab34
AM
1Index: pkgset-order.c
2===================================================================
3RCS file: /cvsroot/installer/poldek/pkgset-order.c,v
4retrieving revision 1.16.4.3
5retrieving revision 1.16.4.3.2.1
6diff -u -r1.16.4.3 -r1.16.4.3.2.1
7--- pkgset-order.c 5 May 2005 19:02:25 -0000 1.16.4.3
8+++ pkgset-order.c 16 Jul 2005 08:09:28 -0000 1.16.4.3.2.1
9@@ -147,7 +147,8 @@
10
11 } else {
12 int i;
13- poldek_log(LOGERR, _("PreReq loop: "));
14+ if (verbose >= -1)
15+ poldek_log(LOGERR, _("PreReq loop: "));
16 msg(-1, "_%s", rp->pkg->name);
17 for (i=n_array_size(vs->stack)-1; i >= 0; i--) {
18 struct pkg *p = n_array_nth(vs->stack, i);
19Index: vfile/vfile.c
20===================================================================
21RCS file: /cvsroot/installer/poldek/vfile/vfile.c,v
22retrieving revision 1.43.4.5
23retrieving revision 1.43.4.5.2.1
24diff -u -r1.43.4.5 -r1.43.4.5.2.1
25--- vfile/vfile.c 15 May 2005 17:22:22 -0000 1.43.4.5
26+++ vfile/vfile.c 16 Jul 2005 08:10:37 -0000 1.43.4.5.2.1
27@@ -293,7 +293,7 @@
28 {
29 int rc = 0;
30
31- if (vfmode & VFM_RW)
32+ if ((vfmode & VFM_RW) && (vfmode & VFM_APPEND) == 0)
33 vf_unlink(path);
34
35 switch (vf->vf_type) {
36@@ -354,7 +354,10 @@
37 free(vf->vf_iobuf);
38 vf->vf_iobuf = NULL;
39 }
40- fseek(vf->vf_stream, 0, SEEK_SET); /* XXX glibc BUG (?) */
41+ fseek(vf->vf_stream, 0L, SEEK_SET); /* XXX glibc BUG (?) */
42+ if (vfmode & VFM_APPEND)
43+ fseek(vf->vf_stream, 0L, SEEK_END);
44+
45 } else
46 vfile_err_fn("fopencookie %s: hgw error\n", CL_URL(path));
47
This page took 0.082842 seconds and 4 git commands to generate.