| Summary: | =net-misc/youtube-dl-2015.02.20: IndentationError thrown without USE=offensive | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Erik <esigra> |
| Component: | Current packages | Assignee: | Jeroen Roovers (RETIRED) <jer> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | baccenfutter, bobbykent32, iskatu, jaak, kingjon3377, nirbheek, proteuss, richard, rose, steffen.weber, v_2e |
| Priority: | Normal | Keywords: | PATCH |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | Patch for the ebuild to fix the -offensive use flag build | ||
|
Description
Erik
2015-02-22 08:48:12 UTC
Found the same thing, looks like it's the result of the ebuild's:
sed -i -e $( printf '/%s/d;' ${xxx[@]} ) youtube_dl/extractor/__init__.py || die
not being able to handle:
from .pornhub import (
PornHubIE,
PornHubPlaylistIE,
)
lines 357 to 360 of the source. The edit removes only the first line.
Created attachment 397354 [details, diff]
Patch for the ebuild to fix the -offensive use flag build
Confirmed, the sed expression assumes single-line import statements. A multi-line capable version would be possible, but possibly not readable!
The sed expression for removing multi-line imports is reasonable:
'/pornhub/,/)/ d'
but just adding this into to the list of sites doesn't work, because the list is also used as a file name list later on, and that fails. So we have to make it two lists for removal, one for single-line imports and the other for multi-line imports. This is reasonably scalable for the future.
Attached patch to the ebuild (tested against 2015.02.23.1, but needed for .18 and .20 as well).
*** Bug 541154 has been marked as a duplicate of this bug. *** Comment on attachment 397354 [details, diff]
Patch for the ebuild to fix the -offensive use flag build
There ought to be an easier way than to single out the multiline imports like that.
Fixed in 2015.03.03.1. Thanks for the report and patch! *** Bug 542060 has been marked as a duplicate of this bug. *** |