From 730dca040fd8b8143d6d25efe0e2d86afa2f5c86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCrer=20=C3=96zen?= Date: Fri, 20 Jul 2007 06:04:15 +0000 Subject: [PATCH] =?UTF-8?q?dosyay=C4=B1=20kontrol=20etmek=20i=C3=A7in=20ra?= =?UTF-8?q?stgele=20boyutta=20bir=20sat=C4=B1r=20okumak=20yerine,=20header?= =?UTF-8?q?=20boyu=20kadar=20data=20oku.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."""