popd >& /dev/null
}
+#################### xxx fixme xxx
+# I'm seeing weird things with f14 nodes and an f8 myplc server
+# I suspect that the f8-based createrepo binary does not do the right thing,
+# as the node (onelab09.pl.sophia.inria.fr) issues a lot of
+# 'package does not match intended content'
+# before reaching this conclusion I have entirely rebuilt the server-side yum repos
+# by (*) checking the gpg keys (*) yum reinstalling all noderepos
+# and on top of that manually re-running createrepo
+# of course the node had gone through yum clean all as well
####################
case "$1" in
start|force)
vslinks=$(find $repositories -name 'vserver*rpm' -a -type l)
for vslink in $vslinks; do
- [ ! -e $vslink ] && echo removing old $vslink
+ [ ! -e $vslink ] && { echo removing old $vslink; rm $vslink; }
done
for repo in $repositories; do
link=$repo/$b
if [ ! -e $link ] ; then
echo "creating symlink $link towards $vsrpm"
+ ln -s $vsrpm $link
fi
done
done
--define "_gpg_name $PLC_MAIL_SUPPORT_ADDRESS" \
--resign $new_rpms && touch $new_stamps
# check
+ # if we sign at least one package then we need to reindex
+ need_createrepo=true
fi
# Update repository index / yum metadata.
find $repository -type l | xargs rm
done
;;
+ # (use this only if you have noderepos installed)
+ superclean)
+ find /var/www/html/install-rpms -name signed-stamps | xargs rm -rf
+ rpm -aq | grep noderepo | xargs yum -y reinstall
+ shift
+ ;;
*)
echo "Usage: $0 start|force|clean [repo ..]"
;;