From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Wed, 09 Sep 2026 11:31:02 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lf1-f58.google.com (mail-lf1-f58.google.com [209.85.167.58]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 6899V1an000872 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 9 Sep 2026 11:31:02 +0200 Received: by mail-lf1-f58.google.com with SMTP id 2adb3069b0e04-5b14d51dae1sf2655704e87.3 for ; Wed, 09 Sep 2026 02:31:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1788946256; cv=pass; d=google.com; s=arc-20260327; b=FwdLWy1CKc2scNOrq8WgDj4mwe8Lz+OhHGCX3S0kiW0yffU1c9Z3B9DBIUyNyZAAFu 7iQIQDId33TvGROzproR8mzVsBuUz/f0bPcwZyN8XUARqSQ56iH6oCV4i04vLsuW0hDD s7D62zBzlZsMeORkHjvJ7g8P4RYASThaTsHjluNK8acyJpgZq38rCkGCoXWdE/WZcPPT 5sZjKl2WUewTh4OwqTm2jFt3QupfdYY8OjfvwyYcXt3UnBBGsr+1l8GHTmP8MLqHOdFt w4///mspZGPEJ+ktb2GGI0sE2hW9kjvRhtXwOlkcntU96cihZaSPuxh4bx6J20+Rh9md 2odA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :sender:dkim-signature; bh=kOyVp6a47m3I9mS5hz9oGdN1wFmbTrlk/RPrg4tDeiY=; fh=KkQ4WWX8GDllzH8vltFuDIgKDpF3j56tDoNb9R8xz94=; b=DUPkkh+6ra8ILYvAh69Kd/ckYH9A4EwokeI+3LITCyc4tR6zm5c9iOP6sFO4CDSWjF esALajYdJUlAVEL9jzCQO7rzgqE65/D1BY3Njrp7XI/z2kmsC76RMPEWi26b0CPIbs0T dnYRxHEYQ1xhauOy7rnC+DY+O+iNQfE8ifcxLvuchrdWNR1aWvDLouW/yrdBmsHbGuS0 O/QL3GWSYTpoBfuatX0F572bbW1NBo12U5EK2SC5+ainNX0PMlqX0IjJzUEMqyZAFxHu JKqFDzyz2krLfADzisaDPZomuwMotD2lcb1W7zMwCW0hBG6xHpxL5d3T/uvqb5cq0jus n5jA==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of akarpovich@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=akarpovich@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20251104; t=1788946256; x=1789551056; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:in-reply-to:from:content-language:references:cc :to:subject:user-agent:mime-version:date:message-id:content-type :sender:from:to:cc:subject:date:message-id:reply-to:content-type; bh=kOyVp6a47m3I9mS5hz9oGdN1wFmbTrlk/RPrg4tDeiY=; b=M2fOYyFZ9i1zqVT9DvLuqzN/I9oSRCj/DkZ4CbRA033tYAp0obzvQ408TymZjEHQBC ZKbC8FcKqmIOK51e7EhMi0iO8VNNhQlUvsIVwGAOjkUZThLqxyCWoiWkb9s8aX7NUoLn FzNrUwOv/haO6Co7bl5w8WjWyZmJbny7Q/cLWASjeY8+bX3mjk+LivNdwyKkMVYpRn9I rL9fF83TbC3cVWxpPEkLiBM7jRfqI1vkM9lSkcfh2WJBw0AwszeJNiip91huxG+3Y3ps +ca8QjW9I4URlC/cCKhB+8mHE+DCYiuHPxzqDTydc69Aty6k9ErHWqiT8DBupupLXlY2 XzSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788946256; x=1789551056; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:in-reply-to :from:content-language:references:cc:to:subject:user-agent :mime-version:date:message-id:content-type:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to:content-type; bh=kOyVp6a47m3I9mS5hz9oGdN1wFmbTrlk/RPrg4tDeiY=; b=guG3KQkH/0kyNSoLyAjV29xPoYYsLr8QCJBr8mXLqZmofofWmoQ7ZgXv3kJLv0gBTX r3xDg8E0t0teKbF4Cw4kqO5XrS9Hqd/pVPjiP5QCyuhC9pxLAxml8xm0qf+p7lBwWD1J r0O0b1c3It95M8ZJD1v2sTBVzEtNARdSSR9zSgeI41KCkU7wWXMAQdA8zzhZ1wSRsTgx dXAVwZpdqZu0H1SzmgSF+S45lILqkMY/Tt8D/Hw1nUN4RYFXrPDYV4xDGNh3SSmMdwbp xJxi2JCRAPxmhfWvMu3VbRh6ZPX77iyLB7QRhRJXI1M5OhLQXNDaU2AqpLgar2RMgGLZ uy9A== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AKwUvBzRaeNeGe9lpmNmXL9dZZtFz3vqnPSDB9iHz6LqtYR0wuf2fbVJ+YH7XH6jY6k+q0vbHbUK@ilbers.de X-Gm-Message-State: AFuF++lxYUyLheY2t/GxXxaASIEeQfjVdoqQqLf1ZAUQkP0Y/VMpRjEZ Pq0SMOxIEhuXLcqllOtrQrmBB1GfWvFii/UW8JoKy0RG7Mway25JcJwj X-Received: by 2002:a05:6512:2308:b0:5ae:bc65:5141 with SMTP id 2adb3069b0e04-5b616effb35mr6061611e87.11.1788946256002; Wed, 09 Sep 2026 02:30:56 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="ATskLdc1wrQDqQhUfaNWsb/cfHE29rgRy+EonBdWJXz5P3ulug==" Received: by 2002:a05:6512:834f:b0:5b4:af85:8ce1 with SMTP id 2adb3069b0e04-5b615cae726ls885e87.1.-pod-prod-05-eu; Wed, 09 Sep 2026 02:30:52 -0700 (PDT) X-Forwarded-Encrypted: i=2; AKwUvBy8rJOQ3RhpKU0Wq5YPrluavCO9bP+5yH/si9dRHWB6FE+RB7+QTu5Lv5WEDXoSSO1+6ASSQ/heiJme@googlegroups.com X-Received: by 2002:a05:6512:15a1:b0:5b6:4ae:8c03 with SMTP id 2adb3069b0e04-5b61706b263mr5931425e87.30.1788946252536; Wed, 09 Sep 2026 02:30:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1788946252; cv=none; d=google.com; s=arc-20260327; b=OVyk9XROKP5awKKH2kLdeTbS2l30yFSulzou+RKuMx0OAAIJNAzqcLs5rlcQy72HAY fMIh9sroWMIeTKKiltipgLhDDec9iV4KmItANz/SgEDYC6/mM0/eGsUqR3CMM07/sJwT +Q8alIJfCGfD/gPFU9gWWCdNmV/VSd9lYJzzlFxlTEkV0KxVr5bJgIOquKaMVlqBMoAp Y3siIBxfhynQmToqCKYjA+99u/AuD1twm39AOLyeuWSdqOq364loeN/TQQKS6tKFDHeG V/4IITK39uPeFhpjbUr90VZx2QnXczPASeO4Bv+e0oyKsCpXUFI1x2+1qKzVWGmCAVyS Fuvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id; bh=TenPKa0pB0BeNdgP2jXuxblyBNb/ZdY4gOFKK59NfPA=; fh=pU0EkCi+e2iHgqT/akOj+T+g7XQNTp4cGiJPlSSRXus=; b=foLvXaS4i3421G5W7qfAUou5hyPoq6wy+jOvH6YqCN5q9ouXj5rF695S+Dt+uVsroM WDoZEIzFdrn1QGe3inrn9Ehw3vprqx60MTMTmW5VQqjeGWAZyxJdP53Mlu4QTH2YDq4B sFdvkA4Uj4d7L5W/wCvOOXgoW5f5NeSjDgusMos+VWQQD+iuUxZl1uxzhbDB+LJ4n5Xm Rbff2vOI+hxKRDS1VGwxsUIp89WjrlBFM3NkJF1aP1Uqrlnz2ZwsmWu5mlPI5P8+Ko7O 2t3W5NpGRWvPCZpdLZ70QlafxFPA/lh+Hj9gdNtr6zDBfjmcnCvU+O7Wf8W275/wu/J6 6QfA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of akarpovich@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=akarpovich@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 2adb3069b0e04-5b6166b0df7si292643e87.6.2026.09.09.02.30.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 Sep 2026 02:30:52 -0700 (PDT) Received-SPF: pass (google.com: domain of akarpovich@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from [10.54.4.147] (62.122.174.6.serverel.net [62.122.174.6] (may be forged)) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 6899UA6U000860 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 9 Sep 2026 11:30:50 +0200 Content-Type: multipart/alternative; boundary="------------fi7StwH7PD5VqM1jlIafotds" Message-ID: <6f6c002a-1301-402e-831f-5bbe06c54d52@ilbers.de> Date: Wed, 9 Sep 2026 12:30:10 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [v10 01/12] scripts: Add debrepo python script handling base-apt To: Florian Bezdeka , isar-users@googlegroups.com Cc: Uladzimir Bely , Aliaksei Laurynovich References: <20260904075515.25962-1-akarpovich@ilbers.de> <20260904075515.25962-2-akarpovich@ilbers.de> <0bfc4f717c8a33cdd17227e3d2e07484a0e02e08.camel@siemens.com> Content-Language: en-US From: Aliaksei Karpovich In-Reply-To: <0bfc4f717c8a33cdd17227e3d2e07484a0e02e08.camel@siemens.com> X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-Original-Sender: akarpovich@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of akarpovich@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=akarpovich@ilbers.de Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-TUID: +fZ1odlC78vX This is a multi-part message in MIME format. --------------fi7StwH7PD5VqM1jlIafotds Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable On 9/4/26 11:14, Florian Bezdeka wrote: > On Fri, 2026-09-04 at 09:52 +0200, Aliaksei Karpovich wrote: >> From: Uladzimir Bely >> >> This is the main utility responsible for prefetching packages >> into local `base-apt` repo from external Debian mirrors. It uses >> python-apt module and requires some kind of minimal `rootfs` to work >> (let's call it "debrepo context"). >> >> Once initialized with `--init --workdir=3D`, it stores the initial >> configuration in `repo.opts` file inside the context and uses it at >> futher calls. >> >> In future, the logic `debrepo` script implements could be directly >> implemented inside bitbake classes. >> >> Signed-off-by: Uladzimir Bely >> Signed-off-by: Aliaksei Karpovich >> Signed-off-by: Aliaksei Laurynovich >> --- >> > [snip] > >> +=C2=A0=C2=A0=C2=A0 def handle_deb(self, item): >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 fd =3D open(f"{self.ctx.repo= dir}/repo.lock", 'w') >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 fcntl.flock(fd, fcntl.LOCK_E= X) >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 subprocess.run([ >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "rep= repro", >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "--d= bdir", f"{self.ctx.repodbdir}/{self.ctx.distro}", >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "--o= utdir", f"{self.ctx.repodir}/{self.ctx.distro}", >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "--c= onfdir", f"{self.ctx.repodir}/{self.ctx.distro}/conf", >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "-C"= , "main", >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "inc= ludedeb", >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 self= .ctx.codename, >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 item= .destfile >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ], t= imeout=3DREPREPRO_TIMEOUT) >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 fd.close() >> + > Searching for subprocess.run() delivers wget and reprepro as external > dependencies. As I can't see any exception handling: What happens if > those dependencies are not installed / available in the calling context? > > Florian In this case the child_exception_type is raised in subprocess.py. Aliaksei. --=20 You received this message because you are subscribed to the Google Groups "= isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/= 6f6c002a-1301-402e-831f-5bbe06c54d52%40ilbers.de. --------------fi7StwH7PD5VqM1jlIafotds Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On 9/4/26 11:14, Florian Bezdeka wrote:<= br>
On Fri, 2026-09-04 at 09:52 +0=
200, Aliaksei Karpovich wrote:
From: Uladzimir Bely <ubely@ilber=
s.de>

This is the main utility responsible for prefetching packages
into local `base-apt` repo from external Debian mirrors. It uses
python-apt module and requires some kind of minimal `rootfs` to work
(let's call it "debrepo context").

Once initialized with `--init --workdir=3D<path>`, it stores the init=
ial
configuration in `repo.opts` file inside the context and uses it at
futher calls.

In future, the logic `debrepo` script implements could be directly
implemented inside bitbake classes.

Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
Signed-off-by: Aliaksei Karpovich <akarpovich@ilbers.de>
Signed-off-by: Aliaksei Laurynovich <alaur@ilbers.de>
---

[snip]

+=C2=A0=C2=A0=C2=A0 def hand=
le_deb(self, item):
+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 fd =3D open(f"{self.ctx.repodir=
}/repo.lock", 'w')
+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 fcntl.flock(fd, fcntl.LOCK_EX)
+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 subprocess.run([
+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "reprep=
ro",
+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "--dbdi=
r", f"{self.ctx.repodbdir}/{self.ctx.distro}",
+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "--outd=
ir", f"{self.ctx.repodir}/{self.ctx.distro}",
+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "--conf=
dir", f"{self.ctx.repodir}/{self.ctx.distro}/conf",
+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "-C", "=
main",
+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "includ=
edeb",
+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 self.ct=
x.codename,
+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 item.de=
stfile
+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ], time=
out=3DREPREPRO_TIMEOUT)
+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 fd.close()
+
Searching for subprocess.run() delivers wget and reprepro as external
dependencies. As I can't see any exception handling: What happens if
those dependencies are not installed / available in the calling context?

Florian

In this case the child_exception_type is raised in subprocess.py.
Aliaksei.




    

--
You received this message because you are subscribed to the Google Groups &= quot;isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to isar-use= rs+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/6f6c0= 02a-1301-402e-831f-5bbe06c54d52%40ilbers.de.
--------------fi7StwH7PD5VqM1jlIafotds--