Skip to content

Commit 6888ebe

Browse files
committed
ParsedGitRepo: minor data assignment simplification
1 parent 5558f37 commit 6888ebe

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

src/pkgcheck/git.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,12 @@ def _pkg_changes(self, local=False, **kwargs):
190190
key = (atom, pkg.status)
191191
if key not in seen:
192192
seen.add(key)
193-
data = {
194-
'date': pkg.commit.commit_date,
195-
'status': pkg.status,
196-
'commit': pkg.commit.hash if not local else pkg.commit,
197-
}
198193
self.data.setdefault(atom.category, {}).setdefault(
199-
atom.package, {})[(atom.fullver, pkg.status)] = data
194+
atom.package, {})[(atom.fullver, pkg.status)] = {
195+
'date': pkg.commit.commit_date,
196+
'status': pkg.status,
197+
'commit': pkg.commit.hash if not local else pkg.commit,
198+
}
200199

201200

202201
class _GitCommitPkg(cpv.VersionedCPV):

0 commit comments

Comments
 (0)