diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2019-03-07 12:16:43 +0100 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2019-03-07 12:16:43 +0100 |
commit | 6e0e6ca75c82a18f07f5d38188b6678a60d75780 (patch) | |
tree | ad90730e50d5fe68dd4c505cd16d803ed26f6c9f | |
parent | 45c2fea6567173c9be60deebf40330c116c378f5 (diff) |
parsing depends file in repo.db, if present
-rw-r--r-- | parabola_repolint/repocache.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/parabola_repolint/repocache.py b/parabola_repolint/repocache.py index 784c586..fed00e4 100644 --- a/parabola_repolint/repocache.py +++ b/parabola_repolint/repocache.py @@ -323,6 +323,10 @@ class PkgEntry(): with open(os.path.join(path, 'desc'), 'r') as infile: data = infile.read() + if os.path.exists(os.path.join(path, 'depends')): + with open(os.path.join(path, 'depends'), 'r') as infile: + data += "\n" + infile.read() + self._data = {} cur = None for line in data.splitlines(): |