Matthew Johnson schrieb:
I shall try building it and reproducing that error, but in order to test
the rest of the  program, can you try applying this diff:

--- jh_manifest.orig 2008-07-08 15:13:23.970424750 +0000
+++ jh_manifest   2008-07-08 15:14:02.756848750 +0000
@@ -73,8 +73,9 @@
manifest = parseManifest(tempdir + "/META-INF/MANIFEST.MF", None, manifest) - if not "Class-Path" in manifest["top"] and "CLASSPATH" in os.environ:
-      manifest["top"]["Class-Path"] = os.environ["CLASSPATH"].replace(":", " ")
+  if None != manifest:
+     if not "Class-Path" in manifest["top"] and "CLASSPATH" in os.environ:
+        manifest["top"]["Class-Path"] = os.environ["CLASSPATH"].replace(":", " 
")
writeManifest(tempdir + "/MANIFEST.MF", manifest)

Now I get:

jh_manifest -i
Ick! 0x622f2123
Traceback (most recent call last):
  File "/usr/bin/jh_manifest", line 248, in <module>
    updatejar(j, tempmanifest, args)
  File "/usr/bin/jh_manifest", line 80, in updatejar
    writeManifest(tempdir + "/MANIFEST.MF", manifest)
  File "/usr/bin/jh_manifest", line 114, in writeManifest
    for (k, v) in manifest["top"].items():
TypeError: 'NoneType' object is unsubscriptable

I guess it hits the same problem of manifest being "None" just a few lines later... I'll try to analyze why manifest is None myself and come back to you later.

Florian



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to