typo in same_existent_file

This commit is contained in:
lilydjwg 2014-02-13 22:15:20 +08:00
parent eaf9afc912
commit a6d93e339c

View file

@ -30,7 +30,7 @@ _pkgfile_pat = re.compile(r'(?:^|/).+-[^-]+-\d+-(?:x86_64|i686|any)\.pkg\.tar\.x
def same_existent_file(a, b):
try:
return os.path.samefile(path, newpath)
return os.path.samefile(a, b)
except OSError:
return False