diff options
author | Roman Bogorodskiy <novel@FreeBSD.org> | 2005-06-05 15:32:48 +0000 |
---|---|---|
committer | Roman Bogorodskiy <novel@FreeBSD.org> | 2005-06-05 15:32:48 +0000 |
commit | 3cbaa86be68a86cf879fd0fb38a03bb203be55e4 (patch) | |
tree | 5bf00212f3e5a5fc09cffd4233b5626810f6001a /sysutils/deltup/files/patch-deltup.cpp | |
parent | don't install the static library like it was before my 1.3 -> 1.5 libtool change (diff) |
- Exit with !=0 code if patch file was not found (to improve error
handling in scripts)
- Install some docs
- Bump PORTREVISION
Notes
Notes:
svn path=/head/; revision=136835
Diffstat (limited to 'sysutils/deltup/files/patch-deltup.cpp')
-rw-r--r-- | sysutils/deltup/files/patch-deltup.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sysutils/deltup/files/patch-deltup.cpp b/sysutils/deltup/files/patch-deltup.cpp new file mode 100644 index 000000000000..76817bfbdad6 --- /dev/null +++ b/sysutils/deltup/files/patch-deltup.cpp @@ -0,0 +1,19 @@ +--- deltup.cpp.orig Fri May 27 18:53:49 2005 ++++ deltup.cpp Fri May 27 18:55:24 2005 +@@ -748,14 +748,14 @@ + void applyPatchfile(char *fname) { + IStream *f = new IFStream(fname); + Injectable_IStream f2(*f); +- if (((IFStream*)f)->bad()) {fprintf(stderr, "file is missing: %s\n", fname); return;} ++ if (((IFStream*)f)->bad()) {fprintf(stderr, "file is missing: %s\n", fname); exit(1);} + int type = determine_filetype(f2); + delete f; + switch (type) { + case GZIP: f = new GZ_IFStream(fname); break; + case BZIP2: f = new BZ_IFStream(fname); break; + case DTU: f = new IFStream(fname); break; +- case UNKNOWN_FMT: fprintf(stderr, "cannot read file %s\n", fname); return; ++ case UNKNOWN_FMT: fprintf(stderr, "cannot read file %s\n", fname); exit(1); + case TARBALL : + f = new IFStream(fname); + unsigned zero_count; |