Open 130s opened 8 years ago
Related in upstream (rosdep
): https://github.com/ros-infrastructure/rosdep/issues/31 https://github.com/ros-infrastructure/rosdep/pull/312
Apparently its seems far complicated so I won't expect this to be addressed on rosdep
side; might as well work it around on my own at least for now.
Experimenting -- on serval, I copied a cron script to /etc/cron.daily
instead of symlink. Let's see if the files below get updated tomorrow.
$ ll ~/.ros/rosdep/sources.cache/
total 2.0M
drwxrwxr-x 2 pastab pastab 4.0K Aug 25 21:19 ./
-rw------- 1 pastab pastab 272K Aug 25 21:19 5d76dbb61bf5385acb00a1ffce292b2eb2e000a8.pickle
-rw------- 1 pastab pastab 936 Aug 25 21:19 index
-rw------- 1 pastab pastab 310K Aug 25 21:19 0ce507007835947045d89dfa382199f6e83de08c.pickle
-rw------- 1 pastab pastab 602K Aug 25 21:19 f7622dadcf19914a1d2d3d8417ec62c3060c5d3e.pickle
-rw------- 1 pastab pastab 441K Aug 25 21:19 6a3d722dfe2d09a104a761d77901e00b2e7a540c.pickle
-rw------- 1 pastab pastab 148K Aug 25 21:19 a75d3a0d86182afb2eb92f6c5473bf18db157d0e.pickle
-rw------- 1 pastab pastab 11K Aug 25 21:19 b67f64890f6d5269c51a68744711f115a8f207ae.pickle
-rw------- 1 pastab pastab 1.9K Aug 25 21:19 825fae71ab9ea366e0b22e8dbe1e2948232cb2e8.pickle
-rw------- 1 pastab pastab 80K Aug 25 21:19 7cfbeed211a3f9a6507c86cebaeedb3e3c4387f8.pickle
-rw------- 1 pastab pastab 125K Aug 25 21:19 b4931581ca7c5741f7ee4ac9767a1174838296f7.pickle
-rw------- 1 pastab pastab 14K Aug 25 21:19 a4b3c8956ab7a3e6d293ba33b57fac42799e69e6.pickle
drwxrwxr-x 3 pastab pastab 4.0K Apr 5 16:08 ../
Experiment in https://github.com/130s/compenv_ubuntu/issues/62#issuecomment-246163158 failed; timestamp stays the same after 3 days.
Working example:
$ cd /etc/cron.daily
$ ll
total 80
drwxr-xr-x 2 root root 4096 Dec 19 21:08 ./
drwxr-xr-x 117 root root 4096 Jan 13 20:58 ../
-rwxr-xr-x 1 root root 633 May 2 2014 apache2*
-rwxr-xr-x 1 root root 219 Apr 10 2012 apport*
-rwxr-xr-x 1 root root 15399 Apr 20 2012 apt*
-rwxr-xr-x 1 root root 314 Apr 18 2013 aptitude*
-rwxr-xr-x 1 root root 502 Mar 31 2012 bsdmainutils*
-rwxr-xr-x 1 root root 256 Apr 12 2012 dpkg*
-rwxr-xr-x 1 root root 372 Oct 4 2011 logrotate*
-rwxr-xr-x 1 root root 1365 Dec 28 2012 man-db*
-rwxr-xr-x 1 root root 606 Aug 17 2011 mlocate*
-rwxr-xr-x 1 root root 249 Apr 9 2012 passwd*
-rw-r--r-- 1 root root 102 Apr 2 2012 .placeholder
-rwxr-xr-x 1 root root 2417 Jul 1 2011 popularity-contest*
lrwxrwxrwx 1 root root 39 Sep 3 2014 ros_mirror -> /var/www/ros.org/cron_script/ros_mirror*
-rwxr-xr-x 1 root root 334 Aug 2 2014 ros.mirror.bk*
-rwxr-xr-x 1 root root 2947 Apr 2 2012 standard*
-rwxr-xr-x 1 root root 214 Sep 10 2012 update-notifier-common*
$ more ros_mirror
#!/bin/sh
set -e
#rsync -azv docs.ros.org::mirror/hydro /var/www/ros.org/docs.ros.org --bwlimit=200 --copy-unsafe-links --delete
rsync -azv docs.ros.org::mirror/indigo /var/www/ros.org/docs.ros.org --bwlimit=200 --copy-unsafe-links --delete
rsync -azv wiki.ros.org::wiki_mirror /var/www/ros.org/wiki.ros.org --bwlimit=200 --delete