Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
bug 454261: add Mercurial and long filename support to patcher - use …
Browse files Browse the repository at this point in the history
…from_decoded instead of partial_decoded. r=nrthomas, patch=me
  • Loading branch information
bhearsum committed Oct 17, 2008
1 parent 4d5942f commit 162d17d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/update-packaging/make_incremental_updates.py
Expand Up @@ -388,7 +388,6 @@ def create_partial_patches(patches):
mar_extract_time = time.time() mar_extract_time = time.time()


partial_filename = create_partial_patch(work_dir_from, work_dir_to, patch_filename, shas, PatchInfo(work_dir, ['channel-prefs.js','update.manifest','removed-files'],['/readme.txt'])) partial_filename = create_partial_patch(work_dir_from, work_dir_to, patch_filename, shas, PatchInfo(work_dir, ['channel-prefs.js','update.manifest','removed-files'],['/readme.txt']))
partial_decoded = decode_filename(partial_filename)
partial_buildid = to_buildid partial_buildid = to_buildid
partial_shasum = sha.sha(open(partial_filename).read()).hexdigest() partial_shasum = sha.sha(open(partial_filename).read()).hexdigest()
partial_size = str(os.path.getsize(partial_filename)) partial_size = str(os.path.getsize(partial_filename))
Expand All @@ -407,8 +406,8 @@ def create_partial_patches(patches):
'partial_size':partial_size, 'partial_size':partial_size,
'to_version':to_decoded['version'], 'to_version':to_decoded['version'],
'from_version':from_decoded['version'], 'from_version':from_decoded['version'],
'locale':partial_decoded['locale'], 'locale':from_decoded['locale'],
'platform':partial_decoded['platform'], 'platform':from_decoded['platform'],
}) })
print "done with patch %s/%s time (%.2fs/%.2fs/%.2fs) (mar/patch/total)" % (str(patch_num),str(len(patches)),mar_extract_time-startTime,time.time()-mar_extract_time,time.time()-startTime) print "done with patch %s/%s time (%.2fs/%.2fs/%.2fs) (mar/patch/total)" % (str(patch_num),str(len(patches)),mar_extract_time-startTime,time.time()-mar_extract_time,time.time()-startTime)
patch_num += 1 patch_num += 1
Expand Down

0 comments on commit 162d17d

Please sign in to comment.