view recipes/kde_enterprise_4/base.py @ 495:ca95be9d033a

add tests for determine debian upstream version fix calling determine_upstream_version in determine_package_version update authors
author Bjoern Ricks <bricks@intevation.de>
date Thu, 14 Oct 2010 07:49:50 +0000
parents 85eb9425c346
children
line wrap: on
line source
# Copyright (C) 2007, 2008, 2009 by Intevation GmbH
# Authors:
# Bernhard Herzog <bh@intevation.de>
#
# This program is free software under the GPL (>=v2)
# Read the file COPYING coming with the software for details.

"""Base classes for all kdepim packagers"""

import os
import time
import inspect
import logging

import treepkg.packager
import treepkg.subversion

import recipes.kde_enterprise_3_5.base as base35

class BaseSourcePackager(base35.BaseSourcePackager):

    changemsg_template = "Update to SVN enterprise4 branch rev. %(revision)s"


BasePackageTrack = base35.BasePackageTrack


def define_kdepim_packager(basename=None, external_subdirs=None):

    caller_globals = inspect.currentframe().f_back.f_globals

    SourcePackager = caller_globals.get("SourcePackager")
    if SourcePackager is None:
        class SourcePackager(BaseSourcePackager):
            pkg_basename = basename

    class RevisionPackager(treepkg.packager.RevisionPackager):
        source_packager_cls = SourcePackager

    class PackageTrack(BasePackageTrack):
        revision_packager_cls = RevisionPackager

        if external_subdirs is not None:
            svn_external_subdirs = external_subdirs

    caller_globals["PackageTrack"] = PackageTrack
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)