bin/install_megadrivers.py: Correctly handle DESTDIR=''
authorDylan Baker <dylan@pnwbakers.com>
Wed, 20 Mar 2019 17:50:10 +0000 (10:50 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Wed, 20 Mar 2019 20:26:44 +0000 (20:26 +0000)
commit4188dd7879a374b698d5f50c84cd26b2606f1ee3
tree93a0e2a89fe202303b955ad32db283d078c593e9
parentefcf9c9f9f01976ef19831fd05d4c48b080d0781
bin/install_megadrivers.py: Correctly handle DESTDIR=''

Currently if destdir is set to '' then the resulting libdir will have
it's first character replaced by / instead of / being prepended to the
string. This was the result of ensuring that that DESTDIR wouldn't be
ignored if libdir was absolute, since the only cases that meson allows
the libdir to be absolute is if the prefix is /, this won't be a
problem.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110211
Fixes: ae3f45c11e3f934939b90445471da8f18b057bc5
       ("bin/install_megadrivers: fix DESTDIR and -D*-path")
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
bin/install_megadrivers.py