Bug#319663: mirror: creates a dir instead of a symlink
Dear Baurzhan, Sorry I could not get back to your bug earlier. On Mon, Jul 25, 2005 at 10:50:05AM +0200, Baurzhan Ismagulov wrote: [snip] BTW: I have tested your package and it works for me. Could you please send me the output of ls -lad /tmp/denx/LinuxPPC/usr/src/RTAI? With kind regards, Baurzhan. I believe the symlinks failed to be made for your mirror package because it instructs mirror to download all files first and then make symlinks. Ftp.denx.de is a very large site and takes a long time to download. A variety of communication failures will cause a mirror run to terminate prematurely and so symlinks are never made. Your problem is a lack of error free download capacity which is a hardware fault not a mirror bug. Please find following a screen log for four commands and a reduced version of your package where mirror makes the symlinks correctly. Please note that there are files giving detailed instructions for mirror in /usr/share/doc/mirror/. I will be closing bug #319663 in due course. Thank you for your bug report. $ cat denx package=denx site=ftp.denx.de remote_dir=/pub local_dir=/tmp/denx passive_ftp=true recursive=true get_patt=RTAI $ mirror denx package=denx ftp.denx.de:/pub - /tmp/denx /tmp/denx no such directory - creating it Created local dir /tmp/denx Got RTAI/README 1539 1 Got RTAI/old/README.rtai-3 4168 2 Got RTAI/old/HISTORY 1762 1 Got RTAI/old/README 2656 2 Got RTAI/old/24.1.12/patch-denx-linuxppc_2_4_devel-D2005-04-26 18670 2 Got RTAI/old/24.1.12/patch-denx-linuxppc_2_4_devel-LABEL_2004_04_30_1320-ltt 198234 3 Got RTAI/old/24.1.12/patch-denx-linuxppc_2_4_devel-LABEL_2004_04_30_1320 18547 2 Got RTAI/old/24.1.12/patch-denx-linuxppc_2_4_devel-LABEL_2003_12_22_1500-ltt 197090 4 Got RTAI/old/24.1.12/patch-denx-linuxppc_2_4_devel-LABEL_2003_12_22_1500 18511 2 Got RTAI/old/24.1.12/rtai-24.1.12-spdrv-mpc8xx.patch.bz2 18995 2 Got RTAI/old/24.1.12/README.rtnet 4304 1 Got RTAI/old/24.1.12/rtai-24.1.12-denx.tar.bz2 3335489 19 Got RTAI/old/24.1.12/rtai-24.1.12-denx.diff 36895 3 Got RTAI/old/24.1.12/load-rtai 611 1 Got RTAI/old/24.1.12/load-ltt 1203 2 Got RTAI/old/24.1.12/patch-denx-linuxppc_2_4_mpc5200-D2003-10-25-ltt 195367 3 Got RTAI/old/24.1.12/README.ltt 5924 2 Got RTAI/old/24.1.12/README.install 5390 1 Got RTAI/old/24.1.12/patch-denx-linuxppc_2_4_mpc5200-D2003-10-25 16039 2 Got RTAI/old/24.1.12/patch-denx-linuxppc_2_4_devel-LABEL_2003_10_11_0005-ltt 212408 4 Got RTAI/old/24.1.12/patch-denx-linux-2.4-LABEL_2003_10_13_1740-ltt 210526 3 Got RTAI/old/24.1.12/patch-denx-linuxppc_2_4_devel-LABEL_2003_10_11_0005 33008 2 Got RTAI/old/24.1.12/patch-denx-linux-2.4-LABEL_2003_10_13_1740 36998 3 Got RTAI/old/24.1.11/load-ltt 1169 1 Got RTAI/old/24.1.11/load-rtai 577 2 Got RTAI/old/24.1.11/patch-denx-linuxppc_2_4_devel-LABEL_2003_05_04_1125-ltt 212732 3 Got RTAI/old/24.1.11/README.ltt 5795 2 Got RTAI/old/24.1.11/patch-denx-linux-2.4-LABEL_2003_05_01_1320-ltt 210469 3 Got RTAI/old/24.1.11/patch-denx-linux-2.4-LABEL_2003_05_01_1320 35447 3 Got RTAI/old/24.1.11/patch-denx-linuxppc_2_4_devel-LABEL_2003_05_04_1125 32149 2 Got RTAI/old/24.1.11/rtai-24.1.11-denx.tar.bz2 3658929 21 Got RTAI/old/24.1.11/rtai-24.1.11-denx.diff 17768 2 Got RTAI/old/24.1.11/README.install 5045 1 Got RTAI/old/24.1.10/patch-denx-linuxppc_2_4_devel-DENX_2003_05_04_1125-ltt.gz 47497 3 Got RTAI/old/24.1.10/patch-denx-linuxppc_2_4_devel-DENX_2003_05_04_1125.gz 8475 2 Got RTAI/old/24.1.10/patch-denx-linuxppc_2_4_devel-DENX_2002_12_15_.gz 8418 1 Got RTAI/old/24.1.10/patch-denx-linuxppc_2_4_devel-DENX_2002_12_15_-ltt.gz 47363 3 Got RTAI/old/24.1.10/patch-denx-linuxppc_2_4_devel-DENX_2003_01_11_2030-ltt.gz 47447 3 Got RTAI/old/24.1.10/patch-denx-linuxppc_2_4_devel-DENX_2003_01_11_2030.gz 8429 1 Got RTAI/old/24.1.10/patch-denx-linuxppc_2_4_devel-LABEL_2002_12_09_1530-ltt.gz 47277 3 Got RTAI/old/24.1.10/patch-denx-linuxppc_2_4_devel-LABEL_2002_12_09_1530.gz 8428 1 Got RTAI/old/24.1.10/patch-denx-linuxppc_2_4_devel-DENX_2002_12_04_1400-ltt.gz 47752 3 Got RTAI/old/24.1.10/patch-denx-linuxppc_2_4_devel-DENX_2002_12_04_1400.gz 8465 1 Got RTAI/old/24.1.10/README.ltt 5796 2 Got RTAI/old/24.1.10/patch-denx-linuxppc_2_4_devel-D2002-10-23-ltt.gz 49940 3 Got RTAI/old/24.1.10/patch-denx-linuxppc_2_4_devel-D2002-10-23.gz 4682 1 Got RTAI/old/24.1.10/README.install 4962 2 Got RTAI/old/24.1.10/patch-ltt-0.9.5a-solaris.gz 1556 1 Got RTAI/old/24.1.10/load-rtai 506 2 Got RTAI/old/24.1.10/load-ltt 1177 1 Got RTAI/old/24.1.10/patch-denx-linux-2.4-D2002-09-26-ltt.gz 47242 3 Got RTAI/old/24.1.10/patch-denx-linuxppc_2_4_devel-D2002-09-26-ltt.gz 49880 2 Got RTAI/old/24.1.10/rtai-24.1.10-denx.diff 14340 2 Got RTAI/old/24.1.10/rtai-24.1.10-denx.tar.bz2 2463043 15 Got RTAI/old/24.1.10/patch-denx-linux-2.4-D2002-09-26.gz 9162 1 Got RTAI/old/24.1.10/patch-denx-linuxppc_2_4_devel-D2002-09-26.gz 4632 2 Got RTAI/old/contrib/ex_shm.tar.bz2 8261 1 Got
Bug#319663: mirror: creates a dir instead of a symlink
On Mon, Jul 25, 2005 at 12:07:51PM +1000, Ian Maclaine-cross wrote: Please put local_dir=/tmp/denx in your package and then $ mirror package name a few times. Does it work? So, I entered local_dir=/mnt/hda1/ibr/denx and re-ran mirror. It said: package=denx ftp.denx.de:/pub - /mnt/hda1/ibr/denx No files to transfer rmdir( LinuxPPC/usr/src/RTAI ) before symlink failed: Directory not empty Then I rm -rf denx/LinuxPPC/usr/src/RTAI and retried. Mirror created denx/LinuxPPC/usr/src/RTAI as a directory and started to download the files :( . I want it to be a symlink, as it is on the site. local_dir should be an absolute filename or results will depend on your default directory at the time. Yes, this is how I want it to be. BTW: I have tested your package and it works for me. Could you please send me the output of ls -lad /tmp/denx/LinuxPPC/usr/src/RTAI? With kind regards, Baurzhan. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#319663: mirror: creates a dir instead of a symlink
Hi Baurzhan, Please see below? On Sat, Jul 23, 2005 at 11:05:03PM +0200, Baurzhan Ismagulov wrote: Package: mirror Version: 2.9-52 Severity: normal Hello Ian, given the following mirror file: package=denx site=ftp.denx.de remote_dir=/pub local_dir=denx passive_ftp=true recursive=true What is the get_patt= for this package? By default this is usually set to nothing. , mirror creates the directory denx/LinuxPPC/usr/src/RTAI, mirrors it, and complains afterwards: package=denx ftp.denx.de:/pub - denx No files to transfer rmdir( LinuxPPC/usr/src/RTAI ) before symlink failed: Directory not empty I'm running mirror on a sarge system with patch 2.5.9-2 and perl 5.8.4-8. With kind regards, Baurzhan. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.11-1-k7 Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1) Versions of packages mirror depends on: ii netbase 4.21 Basic TCP/IP networking system ii patch 2.5.4-11 Apply a diff file to an original ii perl 5.8.4-8Larry Wall's Practical Extraction -- no debconf information -- Regards, Ian Maclaine-cross ([EMAIL PROTECTED]) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#319663: mirror: creates a dir instead of a symlink
Hello Ian, thanks for the prompt reply! On Sun, Jul 24, 2005 at 08:27:09PM +1000, Ian Maclaine-cross wrote: package=denx site=ftp.denx.de remote_dir=/pub local_dir=denx passive_ftp=true recursive=true What is the get_patt= for this package? By default this is usually set to nothing. It is not set, and I have no defaults package. Actually, what I cited was the whole mirror file. AFAICS, the problem has nothing to do with get_patt, since the entry is processed, but not in the right way. Seems as if mirror would create the directory first, recurse into it, and only then would look if that were a symlink. With kind regards, Baurzhan. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#319663: mirror: creates a dir instead of a symlink
Hi, Please see below. On Sun, Jul 24, 2005 at 01:06:26PM +0200, Baurzhan Ismagulov wrote: Hello Ian, thanks for the prompt reply! On Sun, Jul 24, 2005 at 08:27:09PM +1000, Ian Maclaine-cross wrote: package=denx site=ftp.denx.de remote_dir=/pub local_dir=denx passive_ftp=true recursive=true What is the get_patt= for this package? By default this is usually set to nothing. It is not set, and I have no defaults package. Actually, what I cited was the whole mirror file. Good! Please put local_dir=/tmp/denx in your package and then $ mirror package name a few times. Does it work? local_dir should be an absolute filename or results will depend on your default directory at the time. BTW: I have tested your package and it works for me. AFAICS, the problem has nothing to do with get_patt, since the entry is processed, but not in the right way. Seems as if mirror would create the directory first, recurse into it, and only then would look if that were a symlink. With kind regards, Baurzhan. -- Regards, Ian Maclaine-cross ([EMAIL PROTECTED]) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#319663: mirror: creates a dir instead of a symlink
Package: mirror Version: 2.9-52 Severity: normal Hello Ian, given the following mirror file: package=denx site=ftp.denx.de remote_dir=/pub local_dir=denx passive_ftp=true recursive=true , mirror creates the directory denx/LinuxPPC/usr/src/RTAI, mirrors it, and complains afterwards: package=denx ftp.denx.de:/pub - denx No files to transfer rmdir( LinuxPPC/usr/src/RTAI ) before symlink failed: Directory not empty I'm running mirror on a sarge system with patch 2.5.9-2 and perl 5.8.4-8. With kind regards, Baurzhan. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.11-1-k7 Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1) Versions of packages mirror depends on: ii netbase 4.21 Basic TCP/IP networking system ii patch 2.5.4-11 Apply a diff file to an original ii perl 5.8.4-8Larry Wall's Practical Extraction -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]