linuxdeploy / linuxdeploy-plugin-gstreamer

Bundles GStreamer plugins into AppDirs. Experimental code, please expect issues! Help welcome!
3 stars 11 forks source link

Check if file exist or if it's a valid format #4

Closed patrickelectric closed 3 years ago

patrickelectric commented 3 years ago

script fails if path does not exist or file isn't an ELF file. some gstreamer plugins can be python scripts, resulting in a patchelf failure.

TheAssassin commented 3 years ago

I'm not entirely sure how "path does not exist" can happen when you're iterating over a glob list (only two ways I can come up with: file deleted during script execution, maybe broken symlink; it's not documented anywhere), but it certainly can't break anything, so let's merge this PR. I'll squash it, though. Nevermind, you seem to have force-pushed...

TheAssassin commented 3 years ago

Thanks!