diff options
author | HW42 <hw42@ipsumj.de> | 2016-11-07 16:24:47 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-11-07 16:54:35 +0100 |
commit | 1494ae459559e284fe0faf2185c9e241398d604b (patch) | |
tree | 2e813c2613734d40ce1dbd2b2f5bf7f9df73fa1c /hosts/jtk1a-armhf-rb/etc/pbuilder | |
parent | 80f3457426fac1e047ac0d050cf73bb701925214 (diff) | |
download | jenkins.debian.net-1494ae459559e284fe0faf2185c9e241398d604b.tar.xz |
reproducible Debian: improve src_dir variation
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'hosts/jtk1a-armhf-rb/etc/pbuilder')
-rwxr-xr-x | hosts/jtk1a-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/hosts/jtk1a-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/jtk1a-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir index 7750fdfe..9225116b 100755 --- a/hosts/jtk1a-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir +++ b/hosts/jtk1a-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -7,7 +7,7 @@ set -e cd $BUILDDIR -if [ "$(basename $(pwd))" != "2nd" ]; then +if [ "$PWD" == "/build" ]; then # build path variation disabled, so do nothing exit 0 fi @@ -15,6 +15,4 @@ fi # There should be only one file, the source directory. src_dir=$(ls | head -n 1) -# We want to keep the build path length to minimise the diff. So we just -# replace the first char of the source dir. -mv $src_dir _${src_dir:1} +mv $src_dir 2nd |