From: Michal Marek Date: Wed, 4 May 2011 22:37:13 +0000 (+0200) Subject: rpm-pkg: Fix when current directory is a symlink X-Git-Tag: 2.1b_release~3973^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=857c7e438769c0f251092a20b587d6e743ee489d;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git rpm-pkg: Fix when current directory is a symlink The better fix would be to stop using the parent directory (principle of least surprise), but as long as we use it, use it consistently. Signed-off-by: Michal Marek --- diff --git a/scripts/package/Makefile b/scripts/package/Makefile index 1b7eaea..006960e 100644 --- a/scripts/package/Makefile +++ b/scripts/package/Makefile @@ -28,7 +28,7 @@ RPM := $(shell if [ -x "/usr/bin/rpmbuild" ]; then echo rpmbuild; \ # Remove hyphens since they have special meaning in RPM filenames KERNELPATH := kernel-$(subst -,_,$(KERNELRELEASE)) MKSPEC := $(srctree)/scripts/package/mkspec -PREV := set -e; cd ..; +PREV := set -e; cd -P ..; # rpm-pkg # ---------------------------------------------------------------------------