Closed Bug 367802 Opened 19 years ago Closed 19 years ago

patcher2 needs to use MozBuild::Util

Categories

(Release Engineering :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: preed, Assigned: preed)

Details

Attachments

(1 file, 1 obsolete file)

MozAUSLib.pm contains cloned functions that are now available in MozBuild::Util.pm. The version in MozBuild::Util are better tested and are the ones we should be using. Also, MozAUSLib::DownloadFile should move to MozBuild::Util.
Attached patch Take 1 (obsolete) — Splinter Review
This patch does a whole bunch of things: -- Removes the --move-update functionality, since we don't use it, I don't recommend it be used, and it's likely broken anyway -- Convert a bunch of copied code that makes sure our deliverable dir exists to a single function (EnsureDeliverableDir()) -- Remove from MozAUSLib: MkdirWithPath(), RunShellCommand(), DownloadFile(); use MozBuild::Util versions (in the case of DownloadFile(), *move* it to MozBuild::Util) -- Convert all RunShellCommand() calls to MozBuild::Util's calling convention -- Make the default deliverable directory name be what it's always been ("temp" not "output") -- Convert path concatenations to catfile() -- variablize the snippet dir names -- Remove hash_file; use MozBuild::Util's HashFile; convert MozBuild::Util::HashFile() to the new RunShellCommand() calling convention -- In MozBuild::Util::MkdirWithPath, accept "mask" as an argument -- In MozBuild::Util::HashFile, ignore case on the specification of the hash
Attachment #253422 - Flags: review?(rhelmer)
Attached patch Take 2Splinter Review
Same as Take 1, except change how we handle the specification of the checksum type to be saner. One thing I should've mentioned is I'm doing a test run now by generating Firefox's 1.5.0.8 -> 1.5.0.9 patches; so far, so good, but it's still running.
Attachment #253422 - Attachment is obsolete: true
Attachment #253423 - Flags: review?(rhelmer)
Attachment #253422 - Flags: review?(rhelmer)
Attachment #253423 - Flags: review?(rhelmer) → review+
Checking in patcher2.pl; /cvsroot/mozilla/tools/patcher/patcher2.pl,v <-- patcher2.pl new revision: 1.14; previous revision: 1.13 done Checking in MozAUSConfig.pm; /cvsroot/mozilla/tools/patcher/MozAUSConfig.pm,v <-- MozAUSConfig.pm new revision: 1.6; previous revision: 1.5 done Checking in MozAUSLib.pm; /cvsroot/mozilla/tools/patcher/MozAUSLib.pm,v <-- MozAUSLib.pm new revision: 1.4; previous revision: 1.3 done Checking in MozBuild/Util.pm; /cvsroot/mozilla/tools/release/MozBuild/Util.pm,v <-- Util.pm new revision: 1.9; previous revision: 1.8 done Landed.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Depends on: 377473
No longer depends on: 377473
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: