Use readlink instead of realpath in pbuilderrc.sh (closes #82299)

readlink comes from coreutils, avoiding a dependency on the realpath package.

authorJulien Cristau <julien.cristau@logilab.fr>
changesetffec934dffd9
branchdefault
phasepublic
hiddenno
parent revision#322825f8b644 lgp: change quiet mode (closes: #80762)
child revision#983b14178aac Fix TypeError in the narval plugin (closes #85914)
files modified by this revision
etc/lgp/pbuilderrc.sh
# HG changeset patch
# User Julien Cristau <julien.cristau@logilab.fr>
# Date 1320334979 -3600
# Thu Nov 03 16:42:59 2011 +0100
# Node ID ffec934dffd988616bfd5540092e2c67b0935570
# Parent 322825f8b644a2a504ffa633d26071f74d5f96f0
Use readlink instead of realpath in pbuilderrc.sh (closes #82299)

readlink comes from coreutils, avoiding a dependency on the realpath
package.

diff --git a/etc/lgp/pbuilderrc.sh b/etc/lgp/pbuilderrc.sh
@@ -10,11 +10,11 @@
1  #DEBBUILDOPTS will be overriden by lgp
2 
3  is_pure_debian() {
4  	DEBSCRIPT="/usr/share/debootstrap/scripts/$1"
5  	test -f $DEBSCRIPT
6 -	test "$(basename $(realpath $DEBSCRIPT))" = "sid"
7 +	test "$(basename $(readlink -f $DEBSCRIPT))" = "sid"
8  	return $?
9  }
10 
11  merge_lgp_sources_list() {
12  	SOURCESLIST=$1