diff options
author | Mykyta Holubakha <hilobakho@gmail.com> | 2017-06-24 13:28:31 +0300 |
---|---|---|
committer | Mykyta Holubakha <hilobakho@gmail.com> | 2017-06-25 01:53:25 +0300 |
commit | 7b68bae5752a46b62151a2f839a48803559bd799 (patch) | |
tree | cadd5802e75a2991f28010900a152f0721b73333 /pomu | |
parent | Implemented package-specific metadata (diff) | |
download | pomu-7b68bae5752a46b62151a2f839a48803559bd799.tar.gz pomu-7b68bae5752a46b62151a2f839a48803559bd799.tar.bz2 pomu-7b68bae5752a46b62151a2f839a48803559bd799.zip |
Store backend name in the metadata dir
Diffstat (limited to 'pomu')
-rw-r--r-- | pomu/repo/repo.py | 2 | ||||
-rw-r--r-- | pomu/source/portage.py | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/pomu/repo/repo.py b/pomu/repo/repo.py index 7987c15..480510b 100644 --- a/pomu/repo/repo.py +++ b/pomu/repo/repo.py @@ -52,6 +52,8 @@ class Repository(): for m in manifests: f.write('{}\n'.format(strip_prefix(m, self.root))) if package.backend: + with open(path.join(pkgdir, 'BACKEND'), 'w') as f: + f.write('{}\n'.format(package.backend.__name__)) package.backend.write_meta(pkgdir) with open(path.join(pkgdir, 'VERSION')) as f: f.write(package.version) diff --git a/pomu/source/portage.py b/pomu/source/portage.py index 2dcef72..8bb7d3a 100644 --- a/pomu/source/portage.py +++ b/pomu/source/portage.py @@ -17,6 +17,8 @@ from pomu.util.str import pivot class PortagePackage(): """A class to represent a portage package""" + __name__ = 'portage' + def __init__(self, repo, category, name, version, slot='0'): self.repo = repo self.category = category |