[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: A common group on salsa.debian.org for R packages ?



Le Tue, Jan 09, 2018 at 06:31:45AM +0900, Charles Plessy a écrit :
> Le Mon, Jan 08, 2018 at 03:19:27PM +0100, Andreas Tille a écrit :
> > 
> > Sleep well.  Would you consider moving also the R packages of Debian Med
> > project (remaining on Alioth currently) as well in the next couple of
> > days?
> 
> Just started !

Should be done soon (the group sharing is still running - slowly).

Here is what I have done.

# Block update of the old repositories (on Alioth in /git/debian-med)
for pack in $(ls -d r-*)
do
cat << __HOOK__ > $pack/hooks/pre-receive
#!/bin/sh

cat <<EOF
========================================================
This repository has been moved to salsa.debian.org:
https://salsa.debian.org/r-pkg-team/$pack
========================================================
EOF

exit 1
__HOOK__
chmod 775 $pack/hooks/pre-receive
done

# Import the debian-med repos (see previous email).
for pack in $(cat /home/charles/rpackmed) ; do ./import.sh https://anonscm.debian.org/git/debian-med/$pack r-pkg-team ;done

# Set commit emails
for pack in $(cat /home/charles/rpackmed) ; do ./emails_on_push.sh ${pack%%.git} ;done

# Give Developer access to all members of the Debian and science-team
# groups
for gid in 2 2136 ; do for pack in $(cat /home/charles/rpackmed) ; do curl -X POST --header "Private-Token: $(cat ~/gitlabtoken.txt)" "https://salsa.debian.org/api/v4/projects/r-pkg-team%2F${pack%%.git}/share?group_id=$gid&group_access=30"; ; done ; done

# Notify the redirector admins
for pack in $(cat /home/charles/rpackmed) ; do printf "debian-med/%s%71.71s\n" ${pack%%.git} r-pkg-team/${pack%%.git} >> r-pkg-team.conf ; done
# See https://salsa.debian.org/salsa/AliothRewriter/merge_requests/43

Have a nice day,

Charles

-- 
Charles Plessy
Debian Med packaging team,
http://www.debian.org/devel/debian-med
Tsurumi, Kanagawa, Japan


Reply to: