submit packaging files to OBS
authorZhang Qiang <qiang.z.zhang@intel.com>
Mon, 2 Jul 2012 01:45:17 +0000 (09:45 +0800)
committerZhang Qiang <qiang.z.zhang@intel.com>
Mon, 2 Jul 2012 01:45:17 +0000 (09:45 +0800)
This fix a bug introduced by bc4fa71d9d5935f8c44505ee538f7135cfefa44c

gitbuildsys/cmd_remotebuild.py

index 6c3f5c9a3d02bff554583fc7f2925df9ab9d626b..29d525406197597388c9c99b37c1034ddb5ad6c0 100644 (file)
@@ -22,6 +22,7 @@
 import os
 import tempfile
 import glob
+import shutil
 
 import msger
 from conf import configmgr
@@ -141,6 +142,10 @@ def do(opts, args):
             if not git_archive(repo, spec, oscworkdir, commit,
                                comp_type, comp_level=9, with_submodules=True):
                 msger.error("Cannot create source tarball %s" % tarball)
+            git_files = repo.list_files()
+            for f in git_files:
+                if f.startswith('packaging/'):
+                    shutil.copy(f, oscworkdir)
         except (GbpError, GitRepositoryError), excobj:
             msger.error("Repository error: %s" % excobj)