Launchpad dailybuild 源位于分支的子目录中
我有一个存储库分支,已在 Launchpad 中进行镜像,我正在尝试设置每日构建。问题是包的源目录是分支中的子目录。在本地构建时没有问题,因为我可以更改到该目录。然而,使用 Launchpad 的 bzr-builder,它可以从分支的顶部目录执行所有操作。
我当前的构建方案是:
# bzr-builder format 0.3 deb-version {debupstream}-{revno}-{revno:packaging}
lp:kegbot
nest-part packaging lp:~szechyjs/kegbot/kegbot_debian debian debian
理想情况下我会使用 lp:kegbot/pykeg 但这在 bzr 中是不可能的。
有没有一种简单的方法可以通过在我的配方或规则文件中的某种源目录变量中设置它来在 kegbot/pykeg 目录中构建包?
I have a repo branch that i have mirrored in Launchpad that I am trying to setup a daily build. The problem is that the source directory of the package is a subdirectory in the branch. When building locally it's no problem because I can just change to that directory. However with launchpad's bzr-builder it does everything from the top directory in the branch.
My current build recipe is:
# bzr-builder format 0.3 deb-version {debupstream}-{revno}-{revno:packaging}
lp:kegbot
nest-part packaging lp:~szechyjs/kegbot/kegbot_debian debian debian
Ideally I would use lp:kegbot/pykeg
but this is not possible in bzr.
Is there a easy way I can build the package in the kegbot/pykeg directory, by setting it up in my recipe or some kind of source directory variable in the rules file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,
bzr-builder
插件目前不支持您所需要的。原则上,您也许可以通过创建 lp:pykeg 的一个分支来解决这个问题,该分支将 pykeg/ 移动到树的根,并将旧根移动到 ignored/ 。然后,您可以将
merge workaround lp:
…/workaround-branch
添加到您的配方中。不幸的是,像这样旋转树根也不是特别容易。值得在 Launchpad 和/或 bzr-builder 上提交有关此用例的错误。
Unfortunately the
bzr-builder
plugin currently doesn't support what you need.In principle you could perhaps workaround it by making a branch of lp:pykeg that moves
pykeg/
to the root of the tree, and moves the old root toignored/
. You could then addmerge workaround lp:
…/workaround-branch
to your recipe. Unfortunately pivoting the root of a tree like that isn't especially easy either.It would be worth filing a bug on Launchpad and/or bzr-builder about this use-case.