dpkg-name in conjunction with dirnames with spaces
Hi,
being in the "/home/erik/Windows/Users/Administrator/Eigene Dateien" directory while doing an "apt-proxy-import .", i got the following error message:
<snip>
.: /usr/bin/dpkg-name: line 170: [: /home/erik/Windows/Users/Administrator/Eigene: binary operator expected
/usr/bin/dpkg-name: line 170: [: /home/erik/Windows/Users/Administrator/Eigene: binary operator expected
./usr/bin/dpkg-name: line 170: [: /home/erik/Windows/Users/Administrator/Eigene: binary operator expected
./usr/bin/dpkg-name: line 170: [: /home/erik/Windows/Users/Administrator/Eigene: binary operator expected
..
</snip>
The shown patch solved the problem:
<snip>
--- dpkg-name.old 2003-09-22 15:50:51.000000000 +0200
+++ dpkg-name 2003-09-22 16:06:07.000000000 +0200
@@ -167,9 +167,9 @@
then
subdirset=0;
subdir=1;
- if [ -d $arg ];
+ if [ -d "$arg" ];
then
- destinationdir=$arg;
+ destinationdir="$arg";
continue
fi
fi
</snip>
Regards,
Erik
Reply to: