fix bugs
authorJun Wang <junbill.wang@samsung.com>
Thu, 28 Jan 2016 16:28:34 +0000 (00:28 +0800)
committerJun Wang <junbill.wang@samsung.com>
Thu, 28 Jan 2016 16:28:34 +0000 (00:28 +0800)
Change-Id: I406d49bdbfb8b978b62a6bb1fb770df37043f81c

gbp/git/repository.py
packaging/git-buildpackage.spec

index 4d7b24d..20251a0 100644 (file)
@@ -1520,24 +1520,6 @@ class GitRepository(object):
                        work_tree=unpack_dir)
         return self.write_tree(git_index_file)
 
-    def create_tree(self, unpack_dir):
-        """
-        Create a tree object out of a directory content
-
-        @param unpack_dir: content to add
-        @type unpack_dir: C{str}
-        @return: the tree object hash
-        @rtype: C{str}
-        """
-        git_index_file = os.path.join(self.path, self._git_dir, 'gbp_index')
-        try:
-            os.unlink(git_index_file)
-        except OSError:
-            pass
-        self.add_files('.', force=True, index_file=git_index_file,
-                       work_tree=unpack_dir)
-        return self.write_tree(git_index_file)
-
     def commit_dir(self, unpack_dir, msg, branch, other_parents=None,
                    author={}, committer={}, create_missing_branch=False):
         """
index f44750a..134f031 100644 (file)
@@ -231,7 +231,7 @@ done
 %dir %{python_sitelib}/gbp/pkg
 %dir %{python_sitelib}/gbp/scripts
 %dir %{python_sitelib}/gbp/scripts/common
-%{python_sitelib}/gbp-*
+#%{python_sitelib}/gbp-*
 %{python_sitelib}/gbp/*.py*
 %{python_sitelib}/gbp/scripts/__init__.py*
 %{python_sitelib}/gbp/scripts/clone.py*