[Python-modules-commits] [python-modules] 01/01: add the feature to checkout all the pkgs in DPMT
Sandro Tosi
morph at moszumanska.debian.org
Sun Oct 18 00:26:25 UTC 2015
This is an automated email from the git hooks/post-receive script.
morph pushed a commit to branch master
in repository python-modules.
commit 544881ab7608d4b829ebab1f8ef1562b1824c919
Author: Sandro Tosi <morph at debian.org>
Date: Sun Oct 18 01:26:21 2015 +0100
add the feature to checkout all the pkgs in DPMT
---
checkout | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/checkout b/checkout
index 42e5dc5..d83c457 100755
--- a/checkout
+++ b/checkout
@@ -1,7 +1,18 @@
#!/bin/sh
+#
+# pass '-a' as parameter, and it will fetch all the pkgs in DPMT repo
+# pass a list of packages, and it will fetch only them
set -e
-for repo in $@; do
+if [ $1 = "-a" ]
+then
+ # remove all that doesnt contain a [, remove DEFAULT, take the repo names only
+ PKGS=$(sed -e '/\[/! d ; /\[DEFAULT\]/d ; /\[/ s/\[\(.*\)\]/\1/' .mrconfig)
+else
+ PKGS=$@
+fi
+
+for repo in `echo $PKGS`; do
mr --force -d $repo checkout
done
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/tools/python-modules.git
More information about the Python-modules-commits
mailing list