Closed Bug 538933 Opened 15 years ago Closed 15 years ago

Update Service creates updates directory when updates disabled

Categories

(Toolkit :: Application Update, defect)

1.9.1 Branch
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
Tracking Status
status1.9.1 --- wontfix

People

(Reporter: glandium, Assigned: glandium)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch patch for 1.9.1 (obsolete) — Splinter Review
(The code is different on trunk, so I don't know if this applies there ; only filing for reference) When app.update.enabled is false in preferences, the update service still creates the $APPDIR/updates/0 directory, which is pretty pointless. This happens because the check for the preference and other information is done after the directory is created in the canUpdate getter. The attached patch moves these checks around.
Attachment #421017 - Attachment is patch: true
Attachment #421017 - Attachment mime type: application/octet-stream → text/plain
OS: Linux → All
Hardware: x86 → All
Comment on attachment 421017 [details] [diff] [review] patch for 1.9.1 Looks fine and thanks
Attachment #421017 - Flags: review+
I believe I already fixed this on trunk and 1.9.2. I doubt you'll get approval for 1.9.1 though you might be able to convince the 1.9.1 drivers.
As I wrote in comment #0, I only filed for reference. Other linux distros may want to apply it, for example.
Comment on attachment 421017 [details] [diff] [review] patch for 1.9.1 Removing r+ so it doesn't interfere with bugzilla queries
Attachment #421017 - Flags: review+
Marking WFM based on comment #2.
Assignee: nobody → mh+mozilla
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
Comment on attachment 421017 [details] [diff] [review] patch for 1.9.1 Doesn't hurt to ask...
Attachment #421017 - Flags: approval1.9.1.11?
Comment on attachment 421017 [details] [diff] [review] patch for 1.9.1 Except the patch doesn't apply anymore
Attachment #421017 - Flags: approval1.9.1.11?
For those interested.
Attachment #421017 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: