[elbe-devel] [PATCH 08/13] elbeproject: always validate binary repos

Torben Hohn torben.hohn at linutronix.de
Wed Dec 6 10:49:29 CET 2017


On Thu, Nov 30, 2017 at 03:15:10PM +0100, Manuel Traut wrote:
> it makes no sense, to only validate the repos if a bin-cdrom.iso
> should be generated. The repos are also needed to build the RFS.

I also question, why source repos shall not be validated ?

if i specify a repository in the xml it must be validatet.
no matter if i skip source building, or not.

Before this ValidationMode was introduced, we had a flag,
that would skip Repo Validation altogether.
(This was added, because Repo Validation was not perfect, and we needed
to be able to skip it. Considering, that we currently still cant
validate httpredir, we need to be able to skip URL Validation. I dont
see why we have to make distinctions here)

What we also should think about is how we should treat not existing
sourcecode. (Its not correct to error out if source is not found,
because customer app is normally not coming with source)

We should probably add semething like <pkg closed_source="1"> or
something. so that we can produce errors, when source is not found.


> 
> Signed-off-by: Manuel Traut <manut at linutronix.de>
> ---
>  elbepack/elbeproject.py | 8 +++-----
>  1 file changed, 3 insertions(+), 5 deletions(-)
> 
> diff --git a/elbepack/elbeproject.py b/elbepack/elbeproject.py
> index f120ccc5..2232b4c1 100644
> --- a/elbepack/elbeproject.py
> +++ b/elbepack/elbeproject.py
> @@ -207,11 +207,9 @@ class ElbeProject (object):
>          self.write_log_header()
>  
>          # Validate Apt Sources
> -        m = ValidationMode.NO_CHECK
> -        if build_bin:
> -            m = ValidationMode.CHECK_BINARIES
> -            if build_sources:
> -                m = ValidationMode.CHECK_ALL
> +        m = ValidationMode.CHECK_BINARIES
> +        if build_sources:
> +            m = ValidationMode.CHECK_ALL
>          self.xml.validate_apt_sources ( m , self.arch )
>  
>  
> -- 
> 2.15.1
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
Mit freundlichen Grüßen
Torben Hohn

Linutronix GmbH

Standort: Bremen

Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Firmensitz / Registered Office: D-88690 Uhldingen, Bahnhofstr. 3
Registergericht / Local District Court: Amtsgericht Freiburg i. Br.; HRB
Nr. / Trade register no.: 700 806

Geschäftsführer / Managing Directors: Heinz Egger, Thomas Gleixner

Eine Bitte von uns: Sollten Sie diese E-Mail irrtümlich erhalten haben,
benachrichtigen Sie uns in diesem Falle bitte sobald wie es Ihnen
möglich ist, durch Antwort-Mail. Vielen Dank!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.linutronix.de/pipermail/elbe-devel/attachments/20171206/d4bd11be/attachment.sig>


More information about the elbe-devel mailing list