Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 388181 - mozextension.eclass: xpi_unpack cant unpack from current directory
Summary: mozextension.eclass: xpi_unpack cant unpack from current directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-23 07:07 UTC by Shubhadeep Chaudhuri
Modified: 2011-10-31 12:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
mozextension.eclass.patch (mozextension2.eclass.patch,1.84 KB, patch)
2011-10-27 10:54 UTC, Shubhadeep Chaudhuri
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Shubhadeep Chaudhuri 2011-10-23 07:07:31 UTC
If I use xpi_unpack this way xpi_unpack ./foo.xpi, unzip exits because it can't find the specified xpi. This is because xpi_unpack first creates and enters the directory with cd "${WORKDIR}/${xpiname} and then issues unzip "${srcdir}${xpi}".

But srcdir is never assigned the current directory as a value. It is only assigned the value "${DISTDIR}/" when the xpi name doesn't start with "./" or "/"
Comment 1 Shubhadeep Chaudhuri 2011-10-27 10:54:50 UTC
Created attachment 291001 [details, diff]
mozextension.eclass.patch

Patch to fix extraction from current directory