Hello community,

here is the log from the commit of package obs-service-tar_scm for 
openSUSE:12.2 checked in at 2012-07-30 09:31:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:12.2/obs-service-tar_scm (Old)
 and      /work/SRC/openSUSE:12.2/.obs-service-tar_scm.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "obs-service-tar_scm", Maintainer is ""

Changes:
--------
--- /work/SRC/openSUSE:12.2/obs-service-tar_scm/obs-service-tar_scm.changes     
2012-06-25 15:47:21.000000000 +0200
+++ 
/work/SRC/openSUSE:12.2/.obs-service-tar_scm.new/obs-service-tar_scm.changes    
    2012-07-30 09:31:24.000000000 +0200
@@ -1,0 +2,27 @@
+Fri Jul 27 11:16:47 UTC 2012 - [email protected]
+
+- Prevent local users from appearing as user/group owner in
+  generated tar files (thanks bmwiedemann for this)
+
+-------------------------------------------------------------------
+Tue Jul  3 11:23:12 UTC 2012 - [email protected]
+
+- fix option for submodule update
+
+-------------------------------------------------------------------
+Sat Jun 30 13:56:51 UTC 2012 - [email protected]
+
+- Fixed error with cache 
+
+-------------------------------------------------------------------
+Sat Jun 30 10:59:34 UTC 2012 - [email protected]
+
+- Added an option to disable git submodules
+- Replaced --exclude=.$MYSCM with --exclude-vcs tar option 
+
+-------------------------------------------------------------------
+Thu Jun 28 22:53:29 UTC 2012 - [email protected]
+
+- Added support for git submodules
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ tar_scm ++++++
--- /var/tmp/diff_new_pack.c2cBfZ/_old  2012-07-30 09:31:25.000000000 +0200
+++ /var/tmp/diff_new_pack.c2cBfZ/_new  2012-07-30 09:31:25.000000000 +0200
@@ -21,6 +21,7 @@
   MYFILENAME=""
   MYREVISION=""
   MYPACKAGEMETA=""
+  USE_SUBMODULES=enable
 #  MYHISTORYDEPTH=""
   INCLUDES=""
 }
@@ -91,9 +92,13 @@
         echo "history-depth parameter is obsolete and will be ignored"
         shift
       ;;
+      *-submodules)
+        USE_SUBMODULES="$2"
+        shift
+      ;;
       *)
         echo "Unknown parameter: $1"
-        echo 'Usage: $SERVICE --scm $SCM --url $URL [--subdir $SUBDIR] 
[--revision $REVISION] [--version $VERSION] [--include $INCLUDE]* [--exclude 
$EXCLUDE]* [--versionformat $FORMAT] [--versionprefix $PREFIX] [--filename 
$FILENAME] [--package-meta $META] --outdir $OUT'
+        echo 'Usage: $SERVICE --scm $SCM --url $URL [--subdir $SUBDIR] 
[--revision $REVISION] [--version $VERSION] [--include $INCLUDE]* [--exclude 
$EXCLUDE]* [--versionformat $FORMAT] [--versionprefix $PREFIX] [--filename 
$FILENAME] [--package-meta $META] [--disable-git-submodule] --outdir $OUT'
         exit 1
       ;;
     esac
@@ -132,7 +137,7 @@
   FILE="$MYFILENAME"
   WD_VERSION="$MYVERSION"
   if [ -z "$MYPACKAGEMETA" ]; then
-    EXCLUDES="$EXCLUDES --exclude=.$MYSCM"
+    EXCLUDES="$EXCLUDES --exclude-vcs"
   fi
   # if [ "$MYHISTORYDEPTH" == "full" ]; then
   #   MYHISTORYDEPTH="999999999"
@@ -241,6 +246,11 @@
     git)
       # Clone with full depth; so that the revision can be found if specified
       safe_run git clone "$MYURL" "$CLONE_TO"
+      if [ "$USE_SUBMODULES" == "enable" ]; then
+        safe_run cd "$CLONE_TO"
+        safe_run git submodule update --init --recursive
+        safe_run cd ..
+      fi
       ;;
     svn)
       args=
@@ -447,8 +457,8 @@
 create_tar () {
   TARFILE="${TAR_BASENAME}.tar"
   TARPATH="$MYOUTDIR/$TARFILE"
-  debug tar cf "$TARPATH" $EXCLUDES $MYINCLUDES
-  safe_run tar cf "$TARPATH" $EXCLUDES $MYINCLUDES
+  debug tar --owner=root --group=root -cf "$TARPATH" $EXCLUDES $MYINCLUDES
+  safe_run tar --owner=root --group=root -cf "$TARPATH" $EXCLUDES $MYINCLUDES
   echo "Created $TARFILE"
 }
 

++++++ tar_scm.service ++++++
--- /var/tmp/diff_new_pack.c2cBfZ/_old  2012-07-30 09:31:25.000000000 +0200
+++ /var/tmp/diff_new_pack.c2cBfZ/_new  2012-07-30 09:31:25.000000000 +0200
@@ -44,5 +44,10 @@
   <parameter name="history-depth">
     <description>Stored history depth. Special value "full" clones/pulls full 
history. Only valid if SCM git is used.</description>
   </parameter>
+  <parameter name="submodules">
+    <description>Do not include git submodules.</description>
+    <allowedvalue>enable</allowedvalue>
+    <allowedvalue>disable</allowedvalue>
+  </parameter>
 </service>
 

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to