diff --git a/pisi/util.py b/pisi/util.py index ae0f4a6d..319a0be8 100644 --- a/pisi/util.py +++ b/pisi/util.py @@ -311,7 +311,7 @@ def copy_file(src,dest): shutil.copyfile(src, dest) def is_ar_file(file_path): - return open(file_path).readline().strip() == '!' + return open(file_path).read(8) == '!\n' def clean_ar_timestamps(ar_file): """Zero all timestamps in the ar files."""