Closed Bug 1287599 Opened 8 years ago Closed 8 years ago

mozharness archive extraction could be more convenient

Categories

(Release Engineering :: Applications: MozharnessCore, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1258539

People

(Reporter: gbrown, Assigned: gbrown)

References

Details

Attachments

(1 file)

Sometimes when I am experimenting with new archives - like a new android emulator archive - I accidentally use a different archive format (like zip vs tar) or a different filename extension (like .tgz instead of .tar.gz) and that almost always results in a failed try push - what a waste! We can make mozharness archive extraction more forgiving / more convenient.
This adds download_unpack(), which will handle either .zip or .tar-based archives. unpack() is expanded to allow for ".tgz" and ".tar" in addition to ".tar.gz" and ".tar.bz2". The existing download_unzip() is restructured but is functionally unchanged. I use download_unpack() from the android emulator installation only, for now. If download_unpack() works well for the emulator, we may expand its use to other contexts in future.
Attachment #8772166 - Flags: review?(kmoir)
Please also see bug 1258539 which has a patch referenced Armen wants to get finished and landed soon.
See Also: → 1258539
Comment on attachment 8772166 [details] [diff] [review] introduce download_unpack I wasn't aware of whimboo's work -- let's wait and see how that works out.
Attachment #8772166 - Flags: review?(kmoir)
Given that with my upcoming patch on bug 1258539 we do no longer check for file extensions but actually file types this won't be a problem anymore for you. I will mark this bug as duplicate.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: