Using myrepos with the team's packages

Felipe Sateler fsateler at debian.org
Tue Jul 8 16:51:33 UTC 2014


Hi all,

I've discovered myrepos, which is a very useful tool for managing
multiple repositories. I currently store all the team repositories
inside a single pkg-multimedia folder, so I thought using mr should be
easy. So I came up with the following shell line that works for me,
and I thought I'd share.

ssh alioth.debian.org "cd /git/pkg-multimedia/ && \
  find . -name '*.git' -type d" | \
  sed -e 's|^\./||' -e 's/\.git$//' | \
  while read package;
do
  echo "[$package]"
  echo "checkout = gbp clone
git+ssh://git.debian.org/git/pkg-multimedia/${package}.git"
  echo "update = gbp pull"
  echo "skip = lazy"
  echo
done > .mrconfig


Running `mr update` in the base directory will update all checked out
repositories. The skip = lazy part means that if the folder does not
exist, mr will not check out the missing repository (the default for
mr is to checkout missing repositories).

When I want to check out a repository, then I can just do:

mr -d $package --force checkout

And remove the directory when I do not want to keep it up to date.

The use of gbp means that the generated mrconfig must be trusted by
adding it to the ~/.mrtrust file.


Hope you find this useful

-- 

Saludos,
Felipe Sateler



More information about the pkg-multimedia-maintainers mailing list