From 4aae2a904d636371950e283055a17c80dd56851c Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Fri, 1 Dec 2006 21:04:16 +0000 Subject: [PATCH] Cope with variations in autopackage metadata format. git-svn-id: file:///home/talex/Backups/sf.net/Subversion/zero-install/trunk/0publish@1279 9f8c893c-44ee-0310-b757-c8ca8341c71e --- archive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archive.py b/archive.py index b009231..9901c2e 100644 --- a/archive.py +++ b/archive.py @@ -28,7 +28,7 @@ def manifest_for_dir(dir, alg): def autopackage_get_start_offset(package): for line in file(package): - if line.startswith('export dataSize='): + if line.startswith('export dataSize=') or line.startswith('export data_size='): return os.path.getsize(package) - int(line.split('"', 2)[1]) raise Exception("Can't find payload in autopackage (missing 'dataSize')") -- 2.11.4.GIT