diff --git a/pisi/operations/build.py b/pisi/operations/build.py index 6e06f436..6c9003d2 100644 --- a/pisi/operations/build.py +++ b/pisi/operations/build.py @@ -1001,6 +1001,9 @@ class Builder: if ctx.config.values.build.generatedebug: debug_packages = [] for package in self.spec.packages: + if "noDebug" in package.buildFlags: + continue + obj = self.generate_debug_package_object(package) if obj: debug_packages.append(obj) @@ -1126,7 +1129,11 @@ class Builder: # FIXME Remove this hack pkg.metadata.package.debug_package = package.debug_package - delta_packages = self.build_delta_packages(pkg) + if "noDelta" not in package.buildFlags: + delta_packages = self.build_delta_packages(pkg) + else: + delta_packages = [] + self.delta_map[name] = delta_packages pkg.close() diff --git a/pisi/specfile.py b/pisi/specfile.py index 2d5761b5..d1d2443a 100644 --- a/pisi/specfile.py +++ b/pisi/specfile.py @@ -232,6 +232,7 @@ class Package: t_PartOf = [autoxml.String, autoxml.optional] t_License = [ [autoxml.String], autoxml.optional] t_Icon = [ autoxml.String, autoxml.optional] + t_BuildFlags = [[autoxml.String], autoxml.optional, "BuildFlags/Flag"] t_BuildType = [ autoxml.String, autoxml.optional ] t_BuildDependencies = [[pisi.dependency.Dependency], autoxml.optional] t_PackageDependencies = [ [pisi.dependency.Dependency], autoxml.optional, "RuntimeDependencies/Dependency"]