[elbe-devel] [PATCH] elbeproject: invert repo action after package build
Köry Maincent
kory.maincent at bootlin.com
Wed Aug 26 10:58:14 CEST 2020
Hello,
I am just following up with this patch, to make sure you did not miss
it.
It fixes the adding of a built package in the local apt repository.
Regards,
On Fri, 5 Jun 2020 14:44:17 +0200
Kory Maincent <kory.maincent at bootlin.com> wrote:
> Remove package in the repo before including it, not the contrary.
>
> Signed-off-by: Kory Maincent <kory.maincent at bootlin.com>
> ---
> elbepack/elbeproject.py | 14 ++++++--------
> 1 file changed, 6 insertions(+), 8 deletions(-)
>
> diff --git a/elbepack/elbeproject.py b/elbepack/elbeproject.py
> index 02132bde8..228dac042 100644
> --- a/elbepack/elbeproject.py
> +++ b/elbepack/elbeproject.py
> @@ -723,10 +723,7 @@ class ElbeProject (object):
> os.path.join(self.builddir, "pbuilder_cross",
> "base.tgz"), os.path.join(self.builddir, "pbuilder_cross", "result")),
> env_add={'DEB_BUILD_PROFILES':
> profile.replace(",", " ")})
> - self.repo.include(os.path.join(self.builddir,
> - "pbuilder_cross",
> - "result",
> - "*.changes"))
> + pbuilderdir = "pbuilder_cross"
> else:
> do('cd "%s"; %s pdebuild --debbuildopts "-j%s -sa" '
> '--configfile "%s" '
> @@ -737,10 +734,7 @@ class ElbeProject (object):
> os.path.join(self.builddir, "pbuilderrc"),
> os.path.join(self.builddir, "pbuilder",
> "result")), env_add={'DEB_BUILD_PROFILES': profile.replace(",", " ")})
> - self.repo.include(os.path.join(self.builddir,
> - "pbuilder",
> - "result",
> - "*.changes"))
> + pbuilderdir = "pbuilder"
>
> self.repo.remove(os.path.join(self.builddir,
> "pdebuilder",
> @@ -748,6 +742,10 @@ class ElbeProject (object):
> "debian",
> "control"))
>
> + self.repo.include(os.path.join(self.builddir,
> + pbuilderdir,
> + "result",
> + "*.changes"))
> except CommandError:
> logging.exception("Package fails to build.\n"
> "Please make sure, that the submitted
> package "
--
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
More information about the elbe-devel
mailing list