bin/install_megadrivers.py: Fix regression for set DESTDIR
authorDylan Baker <dylan@pnwbakers.com>
Thu, 21 Mar 2019 16:09:20 +0000 (09:09 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Fri, 22 Mar 2019 19:09:00 +0000 (19:09 +0000)
commited96038e55b37501dae0be09287a6209a966eb85
treeaf47da1cef0a591b03d4b27d9b01b2897a65b197
parent23d30f4099fac0e1fcbd7adf315a186f553e48d2
bin/install_megadrivers.py: Fix regression for set DESTDIR

The previous patch tried to address a bug when DESTDIR is '', however,
it introduces a bug when DESTDIR is not '', and fakeroot is used. This
patch does fix that, and has been tested with the arch pkg-build to
ensure it isn't regressed.

Fixes: 093a1ade4e24b7dd701a093d30a71efd669fe9c8
       ("bin/install_megadrivers.py: Correctly handle DESTDIR=''")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110221
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
bin/install_megadrivers.py