~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to services/svnlogservice

  • Committer: Matt Giuca
  • Date: 2009-05-12 15:08:45 UTC
  • mto: This revision was merged to the branch mainline in revision 1247.
  • Revision ID: matt.giuca@gmail.com-20090512150845-fg480l1qh7le0ypz
ivle-fetchsubmissions: In a stunningly awful hack, detects pre-Python2.6 and
    changes make_zip to behave correctly for the awful restriction in zipfile
    that you can't add directories.
    (Stops trying to add directories, and hacks in the footer writing if there
    is an empty file).

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
    try:
51
51
        code = e[1][0][1]
52
52
        # See subversion/include/svn_error_codes.h.
53
 
        # 150000: ERR_ENTRY_NOT_FOUND
54
53
        # 155007: WC_NOT_DIRECTORY.
55
 
        # 160006: FS_NO_SUCH_REVISION
56
54
        # 160013: FS_NOT_FOUND
57
55
        # 200005: UNVERSIONED_RESOURCE
58
 
        if code in (150000, 155007, 160006, 160013, 200005):
 
56
        if code in (155007, 160013, 200005):
59
57
            error = 'notfound'
60
58
        else:
61
 
            error = '%s (code %d)' % (error, code)
 
59
            error = '%s (code %d)' % (error, code) 
62
60
    except IndexError:
63
61
        pass
64
62