]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
Set the id for git repo
authorKacper Kornet <draenog@pld-linux.org>
Wed, 13 Apr 2011 14:44:52 +0000 (15:44 +0100)
committerKacper Kornet <draenog@pld-linux.org>
Tue, 10 Jul 2012 03:59:10 +0000 (04:59 +0100)
admin/install-chroot.sh

index c12f4af39f7ac0a4ffaf095b06fac88c2f0697ec..01dec38010068200880b72230649f8707f2d303f 100755 (executable)
@@ -13,6 +13,7 @@ Variables:
   chroot_dir=/path/to/chroot            (required)
   arch=i386                             (required)
   git_server=git://<host>/<project>      (required in src builder)
+  git_user=<name>                        (required in src builder)
   builder_uid=2000                      (optional, uid of builder user 
                                          in chroot; defaults to current uid)
 EOF
@@ -42,6 +43,7 @@ check_conf () {
   case "$chroot_type" in
   src )
     test "$git_server" || die "no git_server"
+    test "$git_user" || die "no git_user"
     ;;
   bin )
     ;;
@@ -107,6 +109,7 @@ rpm/packages/rpm-build-tools/builder --init-rpm-dir
 echo "%packager       PLD bug tracking system ( http://bugs.pld-linux.org/ )">~/.rpmmacros
 echo "%vendor         PLD">>~/.rpmmacros
 echo "%distribution   $DISTTAG">>~/.rpmmacros
+echo "GIT_LOGINNAME=$git_user" >> ~/.builderrc
 EOF
   chb "sh" < install-specs
   rm install-specs
This page took 0.626046 seconds and 4 git commands to generate.