Index: trunk/debs/update.sh |
— | — | @@ -11,15 +11,21 @@ |
12 | 12 | |
13 | 13 | cd $thisdir |
14 | 14 | svn up $package |
15 | | -cd $package |
16 | 15 | |
17 | 16 | echo "Building package..." |
| 17 | +cd $package |
| 18 | +prebuild_date=`TZ=UTC0 date +'%Y-%m-%d %H:%M:%SZ'` |
| 19 | +sleep 1 |
18 | 20 | dpkg-buildpackage -rfakeroot |
19 | | -echo "Publishing..." |
| 21 | + |
| 22 | +echo |
| 23 | +echo "Uploading files..." |
20 | 24 | cd .. |
21 | | -tar -c $package''_* | ssh -A root@khaldun.wikimedia.org " |
| 25 | +tar -v -N"$prebuild_date" -c $package''_* | ssh -A root@khaldun.wikimedia.org " |
22 | 26 | test -e /srv/wikimedia/pool/main/$package || mkdir /srv/wikimedia/pool/main/$package |
23 | 27 | tar -C /srv/wikimedia/pool/main/$package -x && \ |
| 28 | + echo && \ |
| 29 | + echo Updating the repository || \ |
24 | 30 | /root/update-repository 2>/dev/null && \ |
25 | 31 | echo Success || \ |
26 | 32 | echo update-repository failed |