While we might also eventually want to handle EACCES, ENOENT should be
what we want for the current handler, i.e. "does it exist at all".
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
from __future__ import absolute_import, print_function
from binascii import hexlify
-from errno import EACCES
+from errno import ENOENT
from io import BytesIO
import math, os, stat, sys, time
try:
msr = index.MetaStoreReader(indexfile + b'.meta')
except IOError as ex:
- if ex.errno != EACCES:
+ if ex.errno != ENOENT:
raise
log('error: cannot access %r; have you run bup index?'
% path_msg(indexfile))