diff options
author | 2018-02-10 12:08:55 -0500 | |
---|---|---|
committer | 2018-02-10 12:08:55 -0500 | |
commit | 64a035497f56696b9c25b75a5179dc67bf6f0918 (patch) | |
tree | 24459b28035d1b07d67372ccf7dc468f8ecb4177 | |
parent | drop 'repo_id' attr for pkg objects (diff) | |
download | pkgcore-64a035497f56696b9c25b75a5179dc67bf6f0918.tar.gz pkgcore-64a035497f56696b9c25b75a5179dc67bf6f0918.tar.bz2 pkgcore-64a035497f56696b9c25b75a5179dc67bf6f0918.zip |
merge.triggers: SavePkg: fix repo_id check for newly built pkgs
Which don't have repos yet and therefore don't have 'repo' attrs yet
either.
-rw-r--r-- | src/pkgcore/merge/triggers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkgcore/merge/triggers.py b/src/pkgcore/merge/triggers.py index ddba7ff79..0c8a1f8ea 100644 --- a/src/pkgcore/merge/triggers.py +++ b/src/pkgcore/merge/triggers.py @@ -688,7 +688,7 @@ class SavePkg(base): def trigger(self, engine, cset): pkg = getattr(engine, self._copy_source) # don't build binpkgs of target repo binpkgs - if self.skip_if_source and pkg.repo.repo_id == self.target_repo.repo_id: + if self.skip_if_source and str(getattr(pkg, 'repo')) == self.target_repo.repo_id: return old_pkg = self.target_repo.match(pkg.versioned_atom) |