From a15e60a0ee52e598d21e49f4fdcb6a95eee48420 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Fri, 30 Mar 2007 19:07:07 +0000 Subject: [PATCH] revert last --- pisi/util.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pisi/util.py b/pisi/util.py index 2c4603d7..9a2e332d 100644 --- a/pisi/util.py +++ b/pisi/util.py @@ -17,7 +17,6 @@ import os import re import sys import sha -import magic import shutil import string import statvfs @@ -533,9 +532,8 @@ def strip_directory(top, excludelist=[]): def strip_file(filepath, outpath): """Strip an elf file from debug symbols.""" - ms = magic.open(magic.MAGIC_NONE) - ms.load() - o = ms.file(filepath) + p = os.popen("file \"%s\"" % filepath) + o = p.read() def run_strip(f, flags=""): p = os.popen("strip %s %s" %(flags, f))