diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-10-28 15:50:09 +0000 |
---|---|---|
committer | Mattia Rizzolo <mattia@mapreri.org> | 2015-11-01 12:33:01 +0000 |
commit | e7cc7e7c6457e02ac0df7c87f853e0c5b826e99d (patch) | |
tree | a910a280f237c1ee1483800358ed92df892aebd0 /pbuilder-satisfydepends-gdebi | |
parent | ce75647a9a9ef614c5ea2f45b198f8e79f2063e4 (diff) | |
download | pbuilder-e7cc7e7c6457e02ac0df7c87f853e0c5b826e99d.tar pbuilder-e7cc7e7c6457e02ac0df7c87f853e0c5b826e99d.tar.gz |
use relative sources where possible
This way it's a lot easier to test stuff without actually installing it
Use BASH_SOURCE, which contains the path of the current script being executed.
BASH_SOURCE is clearly a bashism, but it's cheaper than using dirname(1).
Thanks to Gianfranco Costamagna for noticing how this bit could have be improved.
Gbp-Dch: Short
Diffstat (limited to 'pbuilder-satisfydepends-gdebi')
-rw-r--r-- | pbuilder-satisfydepends-gdebi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pbuilder-satisfydepends-gdebi b/pbuilder-satisfydepends-gdebi index 3bd3cf7..77fcd97 100644 --- a/pbuilder-satisfydepends-gdebi +++ b/pbuilder-satisfydepends-gdebi @@ -39,4 +39,4 @@ function checkbuilddep_internal () { $CHROOTEXEC /usr/bin/apt-get install -y "${APTGETOPT[@]}" $INSTALL } -. /usr/lib/pbuilder/pbuilder-satisfydepends-checkparams +. "${BASH_SOURCE%/*}/pbuilder-satisfydepends-checkparams" |