build: Add dependencies of debug packages

Currently, it only adds "foo" dependency to "foo-dbginfo" package.
This commit is contained in:
Fatih Aşıcı
2010-09-22 09:07:14 +00:00
parent 04e0bd121a
commit f563c616cc
+5
View File
@@ -772,6 +772,11 @@ class Builder:
debug_package_obj.description['en'] = u'Debug files for %s' % (package.name)
debug_package_obj.partOf = package.partOf
dependency = pisi.dependency.Dependency()
dependency.package = package.name
dependency.release = self.spec.history[0].release
debug_package_obj.packageDependencies.append(dependency)
for path_info in package.files:
path = util.join_path(ctx.const.debug_files_suffix, path_info.path)
debug_path_info = pisi.specfile.Path(path=path, fileType="debug")