|
楼主 |
发表于 2006-6-13 19:39:26
|
显示全部楼层
[quote:2b8b088a0f="KanKer"]关于这个警告:
警告: 你的rpm模块不支持 readHeaderFromFD()!
警告: 结果是, smart将消耗额外的内存。
可能是因为 ML 的 rpm 版本太低的缘故,没有太大影响。
不喜欢的朋友可以把那个警告注释掉如下:
[code:1]
--- smart-0.41/smart/backends/rpm/header.py.orig 2006-06-07 22:11:02.000000000 +0800
+++ smart-0.41/smart/backends/rpm/header.py 2006-06-08 09:27:02.000000000 +0800
@@ -397,10 +397,10 @@
self.__class__.WARNED = True
sysconf.set("no-rpm-readHeaderFromFD",
sysconf.get("no-rpm-readHeaderFromFD", 0)+1)
- iface.warning(_("Your rpm module has no support for "
- "readHeaderFromFD()!\n"
- "As a consequence, Smart will consume "
- "extra memory."))
+ #iface.warning(_("Your rpm module has no support for "
+ # "readHeaderFromFD()!\n"
+ # "As a consequence, Smart will consume "
+ # "extra memory."))
self.__class__.getHeaders = self.getHeadersHDL.im_func
self.__class__.getHeader = self.getHeaderHDL.im_func
[/code:1][/quote]
是否考虑到更新一下rpm的版本? |
|