我可以向 deb 包添加通配符依赖项吗?

问题描述 投票:0回答:1

我正在创建一个 deb 包,它依赖于一长串包,所有包都以

aisoy-
开头。使用 apt-get 安装时,我可以使用
apt-get install aisoy-*
安装它们,但是如果我在 deb 包的控制文件中写入它,它会失败并显示
dpkg-gencontrol: failure: error detected when analyzing «Depends» field
.

我的控制文件很简单:

Source: aisoy-raspberry
Section: devel
Priority: optional
Maintainer: [omitted]
Build-Depends:
Homepage: [omitted]

Package: aisoy-raspberry
Architecture: any
Depends: [other packages that work well], aisoy-*
Description: All packages needed to install Aisoy in Raspberry Pi

有没有办法一次包含所有

aisoy-*
包?

dependencies packaging deb
1个回答
3
投票

这是不可能的,因为你必须明确。 如果您查看Debian 打包库代码,依赖项的正则表达式非常简单。

它只匹配包含以下内容的包名称:

[a-zA-Z0-9][a-zA-Z0-9+.-]*

© www.soinside.com 2019 - 2024. All rights reserved.