rpm-pkg: Fix when current directory is a symlink
authorMichal Marek <mmarek@suse.cz>
Wed, 4 May 2011 22:37:13 +0000 (00:37 +0200)
committerMichal Marek <mmarek@suse.cz>
Tue, 24 May 2011 15:44:00 +0000 (17:44 +0200)
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 <mmarek@suse.cz>
scripts/package/Makefile

index 1b7eaea83123a523ea0936e6e4302f16de8a29a6..006960ebbce927adbb1761ecc1275858db00a62c 100644 (file)
@@ -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
 # ---------------------------------------------------------------------------