cas | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
New commits:
commit b2c15170ee3602ce580e685575dff87c6416ec8f
Author: Adam Stokes <adam(a)conans.battleaxe>
Date: Wed Oct 22 22:54:13 2008 -0400
*** empty log message ***
diff --git a/cas b/cas
index 2172479..88a9074 100755
--- a/cas
+++ b/cas
@@ -46,14 +46,13 @@ class TimestampHandler(object):
self.tool = CoreTool()
def run(self):
- debugList = self.util.load(self.db)
+ rpmDB = self.util.load(self.db)
coreTimestamp = self.tool.timestamp(self.corefile)
if coreTimestamp:
dprint(coreTimestamp, DPRINT)
- for item in debugList:
- debug, timestamp = item
- if coreTimestamp and coreTimestamp in timestamp:
- return debug
+ for k,v in rpmDB:
+ if coreTimestamp and coreTimestamp in rpmDB[k].coreObj.timestamp:
+ return rpmDB[k]
else:
dprint("Unable to match fingerprint : %s" % (coreTimestamp,),
DPRINT)
sys.exit(1)
@@ -90,11 +89,9 @@ class CasApplication(object):
if not corefile:
dprint("Unable to determine corefile : %s" % (corefile,), DPRINT)
sys.exit(1)
- debug = TimestampHandler(corefile, RPMS).run()
+ coreObj = TimestampHandler(corefile, RPMS).run()
try:
- symlink_dst = os.path.join(self.storagePath,
- os.path.basename(debug))
- os.symlink(debug,symlink_dst)
+ # extract debug kernel to workDirectory
except:
dprint("Unable to perform symlink %s" % (os.path.basename(debug)),
DPRINT)
sys.exit(1)
Show replies by date