~ubuntu-branches/ubuntu/vivid/libzip/vivid

« back to all changes in this revision

Viewing changes to regress/add_from_buffer.c

  • Committer: Package Import Robot
  • Author(s): Fathi Boudra
  • Date: 2014-02-09 13:24:18 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20140209132418-t7u2auujqnfb5rvm
Tags: 0.11.2-1
* New upstream release (Closes: #734388).
* Remove patches:
  - fix_open_nonarchive_test.patch - fixed upstream
  - fix_zipconf_path.patch - fixed upstream
  - fix_broken_decrypt.patch - fixed upstream
  - fix_autotools_tests.diff - stolen upstream
* Update debian/control:
  - add unzip to Build-Depends.
  - bump compat to 9
* Update *.install: multiarch paths.
* Update libzip2 symbols file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
    
65
65
    if ((za=zip_open(archive, ZIP_CREATE, &err)) == NULL) {
66
66
        zip_error_to_str(buf, sizeof(buf), err, errno);
67
 
        fprintf(stderr, "%s: can't open zip archive %s: %s\n", prg,
 
67
        fprintf(stderr, "%s: can't open zip archive '%s': %s\n", prg,
68
68
                archive, buf);
69
69
        return 1;
70
70
    }
77
77
 
78
78
    if (zip_add(za, file, zs) == -1) {
79
79
        zip_source_free(zs);
80
 
        fprintf(stderr, "%s: can't add file `%s': %s\n", prg,
 
80
        fprintf(stderr, "%s: can't add file '%s': %s\n", prg,
81
81
                file, zip_strerror(za));
82
82
        return 1;
83
83
    }
84
84
 
85
85
    if (zip_close(za) == -1) {
86
 
        fprintf(stderr, "%s: can't close zip archive %s\n", prg,
87
 
                archive);
 
86
        fprintf(stderr, "%s: can't close zip archive '%s': %s\n", prg,
 
87
                archive, zip_strerror(za));
88
88
        return 1;
89
89
    }
90
90