Explorar o código

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 <mmarek@suse.cz>
Michal Marek %!s(int64=14) %!d(string=hai) anos
pai
achega
857c7e4387
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scripts/package/Makefile

+ 1 - 1
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
 # ---------------------------------------------------------------------------