[Uludag-commits] r4385 - trunk/pisi/tools
svn-uludag at uludag.org.tr
svn-uludag at uludag.org.tr
15 Kas 2005 Sal 02:21:20 EET
Author: exa
Date: Tue Nov 15 02:21:19 2005
New Revision: 4385
Modified:
trunk/pisi/tools/find-lib-deps.py
Log:
fix: the type is executable, not binary
Modified: trunk/pisi/tools/find-lib-deps.py
=================================================================
--- trunk/pisi/tools/find-lib-deps.py (original)
+++ trunk/pisi/tools/find-lib-deps.py Tue Nov 15 02:21:19 2005
@@ -38,7 +38,7 @@
needed = set()
for file in package.files.list:
#print file.path, file.type
- if file.type == 'binary':
+ if file.type == 'executable':
(ret, lines) = util.run_batch('objdump -p %s' % util.join_path('/tmp/install', file.path))
for x in lines:
if x.startswith(' NEEDED'):
@@ -53,7 +53,12 @@
try:
(pkg_name, file_info) = ctx.filesdb.get_file(path)
ctx.ui.info("Library dependency: '%s' due to library '%s'" % (pkg_name, file_info.path))
+ deps.add(pkg_name)
except:
ctx.ui.warning('Cannot find an installed package for library %s' % lib)
+ctx.ui.info('Found deps:')
+for x in deps:
+ ctx.ui.info(x)
+
pisi.api.finalize()
Uludag-commits mesaj listesiyle ilgili
daha fazla bilgi