chiark / gitweb /
preload-hacks: Some patches to make it work.
[termux-packages] / packages / getmail / utilities.py.patch
1 diff -u -r ../getmail-5.1/getmailcore/utilities.py ./getmailcore/utilities.py
2 --- ../getmail-5.1/getmailcore/utilities.py     2017-07-16 05:26:01.000000000 +0200
3 +++ ./getmailcore/utilities.py  2017-07-26 13:36:30.196152312 +0200
4 @@ -47,6 +47,7 @@
5  import sys
6  import tempfile
7  import errno
8 +import shutil
9  try:
10      import subprocess
11  except ImportError, o:
12 @@ -340,7 +341,7 @@
13  
14      # Move message file from Maildir/tmp to Maildir/new
15      try:
16 -        os.link(fname_tmp, fname_new)
17 +        shutil.copy2(fname_tmp, fname_new)
18          os.unlink(fname_tmp)
19  
20      except OSError: