commit:     f0fa7515a57cc273134d89b5a424e8dcca75ba6a
Author:     Magnus Granberg <zorry <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 19 11:54:13 2015 +0000
Commit:     Magnus Granberg <zorry <AT> gentoo <DOT> org>
CommitDate: Sun Jul 19 11:54:13 2015 +0000
URL:        
https://gitweb.gentoo.org/proj/tinderbox-cluster.git/commit/?id=f0fa7515

change from HEAD^ to origin when we diff to get all Manifests

 tbc/pym/sync.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tbc/pym/sync.py b/tbc/pym/sync.py
index 39d8385..12c4c9f 100644
--- a/tbc/pym/sync.py
+++ b/tbc/pym/sync.py
@@ -73,13 +73,13 @@ def git_sync_main(session):
        repo_cp_dict = {}
        for repo_dir in git_repos_list(myportdb):
                reponame = myportdb.getRepositoryName(repo_dir)
-               attr = {}
                repo = git.Repo(repo_dir)
                info_list, repouptodate = git_fetch(repo)
                if not repouptodate:
                        cp_list = []
-                       # FiXME We still miss files to update
-                       for diff_line in repo.git.diff('HEAD^').splitlines():
+                       attr = {}
+                       # We check for Manifest changes and add the package to 
a list
+                       for diff_line in repo.git.diff('origin').splitlines():
                                if re.search("^diff --git.*/Manifest", 
diff_line):
                                        diff_line2 = re.split(' b/', 
re.sub('diff --git', '', diff_line))
                                        diff_line3 = re.sub(' a/', '', 
diff_line2[0])

Reply via email to