Closed Bug 1803338 Opened 2 years ago Closed 2 years ago

Incorrect Usage of rmtree in packageit.py

Categories

(Firefox Build System :: General, defect)

Firefox 109
x86_64
Windows 10
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rf, Assigned: ahochheiden)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0

Steps to reproduce:

  1. Clone https://hg.mozilla.org/mozilla-build
  2. Start the Mozilla Build Shell (start-shell.bat)
  3. Run ./packageit.py

Actual results:

The script errored with:

Traceback (most recent call last):
  File "C:\mozilla-source\mozilla-build\packageit.py", line 216, in <module>
    shutil.rmtree(locale_path)
NameError: name 'shutil' is not defined

Expected results:

packageit.py should not have errored and should have run till completion.

shutil.rmtree should be replaced with rmtree on the following line https://hg.mozilla.org/mozilla-build/file/tip/packageit.py#l216

OS: Unspecified → Windows 10
Hardware: Unspecified → x86_64
Assignee: nobody → ahochheiden
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

Pushed by ahochheiden@mozilla.com:
https://hg.mozilla.org/mozilla-build/rev/2c18776dd6ff
Correctly call rmtree when removing the locale dir r=firefox-build-system-reviewers,nalexander

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: