blob: e3406ba6597052751081f1a5719e4601d76c857f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
backend.py
~~~~~~~~~~
ELPA backend
:copyright: (c) 2013 by Jauhien Piatlicki
:license: GPL-2, see LICENSE for more details.
"""
import os
from g_sorcery.backend import Backend
from g_sorcery.metadata import MetadataGenerator
from g_sorcery.eclass import EclassGenerator
from .elpa_db import ElpaDB
from .ebuild import ElpaEbuildWithDigestGenerator, ElpaEbuildWithoutDigestGenerator
from .fileutils import get_pkgpath
class ElpaEclassGenerator(EclassGenerator):
def __init__(self):
super(ElpaEclassGenerator, self).__init__(os.path.join(get_pkgpath(), 'data'))
instance = Backend(ElpaDB,
ElpaEbuildWithDigestGenerator, ElpaEbuildWithoutDigestGenerator,
ElpaEclassGenerator, MetadataGenerator, sync_db=False)
|