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:37:16 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-ed1-f57.google.com (mail-ed1-f57.google.com [209.85.208.57]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 6899bGLm000980 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 9 Sep 2026 11:37:16 +0200 Received: by mail-ed1-f57.google.com with SMTP id 4fb4d7f45d1cf-6a5f96426b9sf5753347a12.1 for ; Wed, 09 Sep 2026 02:37:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1788946631; cv=pass; d=google.com; s=arc-20260327; b=CYMg9PS7lq3iUj3LUybviuM5GZW9SmkU0Vc2555/sxPPxhb4XX9Zo5lcZWxl1lJnIE nXTIh9fCAyICmBbyjsLmOSzFmCVUL3FS2DfBl8AwSUwgidZ5RA07p4iDb+QxJsryIbCg K5wbr5SP/yVlXxfo3KwNsoTOTDkV2YGpcWqmOYZPl9x9UM0w0mBkKkDAreWdnRQUltD7 8ireUc1smUnNDTpWHcBi/8b47tcmQwXEJ5A+D0BP9/tbkIIFm2QnNv9OKZJGoQ+pgNYX kQdTGsx839fiYeKM/qoBHiJWBHS0YuogR3U5NUcy7Y2c3W8fQVLQjnQBG5PmHeSdNSuO 9xsQ== 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:reply-to:feedback-id:mime-version :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=KDy23JFH5HVqn7FCDliS76DU91SETu3iu98t6FOffo4=; fh=zY2DG0xCWmyBgVnhxrEQyI8ELFu3TLGNcynMUGakeFw=; b=Yo7dDN5Ch0t8zEBllBYwNjQD0uqGmb7wN7YJgzmzxeJVd8IyDNmS/WGXXzg4BzlMlb fwGLI9tEhxdVQP0mPJpQA79DzXUfe1FiggTCBPGEKU2E3sDB5QQfnNLkouUBg1dpZOYL Mi+NPVlclkq7orojlod10+Da8utsUv/2MthsWWi2+7xO4Slvg1TqDWJbw3R5b6wBqC9r KuU7ggWcGq5yXL8btm5qBd2LTLSkxcpHaHHmyq8n1lrpsil4e+95OeyrXLgpoA22TF9C 3QOY7E2aHhYwCDDG33Q51k4XDxID/c3W4l1OiLtyPGYVM+ZT0oeCre5aU4Sh28j9/PSv 4nZA==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=gzukvf8Z; spf=pass (google.com: domain of fm-68982-20260909093707731032b3ed00020774-5dahqn@rts-flowmailer.siemens.com designates 185.136.65.226 as permitted sender) smtp.mailfrom=fm-68982-20260909093707731032b3ed00020774-5dAhQN@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20251104; t=1788946631; x=1789551431; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:content-transfer-encoding:content-type:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to:content-type; bh=KDy23JFH5HVqn7FCDliS76DU91SETu3iu98t6FOffo4=; b=dDn/wXcAP+8VN8q4rSJR+W+Qc/W0/HaPwWK0bXPnUgIJqD4iRI3hQL5fbD+aju6eI5 8bZjhDxuPH1EOjmZk8G+/j823eNG/su6dj4AoDWDBbSUWBvDr9hPT+3xnE4ZqTF7Zmg7 sunsWn7hFXFWFfzNgas5VrC8KC40FOhATR1Ub/qkD5/EOzL8BxaI5OhtJyULlJPp/Of9 +PuXBMXOCwSh9Tw69qGAS9tdJaR/2W469DHJTBUla1keMovupLykL6JhyWcGjZ0HVp2Y g7S+bHOgAA5d+xeRPydgFPtCrxrhJmlQ+nXu5yuRtficEJJty32WHeQ896xooSuQ9wC2 NRrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788946631; x=1789551431; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:content-transfer-encoding:content-type:references :in-reply-to:date:cc:to:from:subject:message-id:x-beenthere :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=KDy23JFH5HVqn7FCDliS76DU91SETu3iu98t6FOffo4=; b=qwSzhHdZbxWudRBaqVywzVojhasmVbSmGwCvAt6V9p1fhAg89rgbUOshOHjvKqiJtg Yy3e7WhjBmAYqBU8pzU+KSDUUVQtuB2Icq0if2A/wc3/ErQ1XOpTHOwLg18Cv7n6oJPl guYMSNMQ6VMI7g16eeDMaExErOCzo8TMMJ5W3Z/DLvWfPkt86s+kLv0Ks6oMuyoQ20vn lG0Uc9+/9tlfivpbZor/xERe0wwkHZwzdqKupsDoH9AkpjWsIhV5LK7ON0lziPOLmqpK dwyWjzGvMeFoLcVbaXEnLfo5HgNDky51LFz76oeqrLPjiPo8wxl5fT/aGtG3Ps1f42z3 Wr/w== X-Forwarded-Encrypted: i=2; AKwUvBzidH4ElMaLpa8x5GpT2NooKLWngnw3hl9HPitp5vLKsQO62mulsHvAPZPHyeF+wxJLRrn/@ilbers.de X-Gm-Message-State: AFuF++l5382exKZofEGekqUwIY78dQCbPVJP/dMUt7sQJOiBIlTjVgfT yeFX+zP2hhvtcAC0/3Aj+k8I6CV9ctUZPZ+CjPU9MkfnZxsVApCM+TW7 X-Received: by 2002:a05:6402:27d0:b0:6a9:863a:3e6 with SMTP id 4fb4d7f45d1cf-6a9863a0486mr2358754a12.31.1788946630522; Wed, 09 Sep 2026 02:37:10 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="ATskLddD5zzjoWSc71iH+Y3oeypujufSUUFqUcpSRZ0kYNl7qA==" Received: by 2002:a05:6402:46c3:b0:69f:4d2f:1315 with SMTP id 4fb4d7f45d1cf-6a7e5478bc8ls6097007a12.0.-pod-prod-04-eu; Wed, 09 Sep 2026 02:37:08 -0700 (PDT) X-Forwarded-Encrypted: i=2; AKwUvBz6ldeg4wgzG2NP1RzkYtCLXmxUGyBUYfRa3hWyPiIpDXEvvEyY8Jg2xULRO8w2rchotCjwA0u7aMsi@googlegroups.com X-Received: by 2002:a05:6402:13cd:b0:6a8:f45a:dbb1 with SMTP id 4fb4d7f45d1cf-6a8f479ab45mr2940288a12.45.1788946627980; Wed, 09 Sep 2026 02:37:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1788946627; cv=none; d=google.com; s=arc-20260327; b=JKrBjsNOXgc3KVUyXH7Q2oD0GnvKqZwkiMmb7DeyxTCV+R5i4JodrEM/l+OQK/z+Bt ze5WVXHxpP9xfAgsBv7zvbGhqgwECLRGLw34ZaVKE2HYqjeuhqdPv72vWayzW3K9AG8u 8+TzwcJAvCcatXZAWBqID4bePKx1nQewtm2BPxVyXHnnJa9+KWCb4q/2vSfRXuS6NyJR 5fPC9DXFblSu1UJ+dWNKo94wdbmNzD6ZNzOzFDxYsRSW68eo+apaDN0tc+BwJhaHwI0C AS8kowQxW3gq4/BsOlZUWTocAeUqeE8e5lW4kx07gkFxRuiQs2OnSQGu2Hio6BkkBvPc iHeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=feedback-id:mime-version:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:dkim-signature; bh=tN7Xk3TAAiJfmo1cA0T22MTPwJUaB6nxUDAeEIoReu4=; fh=7L3FVIoHZgiEnULiWRLmtbjNda9AqFUTeUM+9VAMJo8=; b=igAbkUtp0hgz5+reSxiVlEfadZAaAsQh2kqtdOj9nKRScjpe4cK9c0mrcY3cuwbSIY WTZ2hwRLHBKLxpBWNYWxkK9+zA4+oMPxpQrAJ2XiBlgptPwihfIYypoQPCPWLDXS4OQd mVbTUob9VQu7uHdf1gyegcC6RalA4R70UdnvAmNX/IBNnwHOC8j3joOpa21qotFHa989 nx81FJbHs2tkP53gZnX1weF4U/7vBKGk7xsclSRgmFRdjYqtYcmI3wdrsftCNAtStBmw 4NHE32MsAaaZ9Zn4UtxNVwKKWFwEx5ORRQncZMcZKV9m5PrLsVipCRRuMp8K2kl3VXKj HoEQ==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=gzukvf8Z; spf=pass (google.com: domain of fm-68982-20260909093707731032b3ed00020774-5dahqn@rts-flowmailer.siemens.com designates 185.136.65.226 as permitted sender) smtp.mailfrom=fm-68982-20260909093707731032b3ed00020774-5dAhQN@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-65-226.siemens.flowmailer.net (mta-65-226.siemens.flowmailer.net. [185.136.65.226]) by gmr-mx.google.com with ESMTPS id 4fb4d7f45d1cf-6a7e687c201si354876a12.6.2026.09.09.02.37.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Sep 2026 02:37:07 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-68982-20260909093707731032b3ed00020774-5dahqn@rts-flowmailer.siemens.com designates 185.136.65.226 as permitted sender) client-ip=185.136.65.226; Received: by mta-65-226.siemens.flowmailer.net with ESMTPSA id 20260909093707731032b3ed00020774 for ; Wed, 09 Sep 2026 11:37:07 +0200 Message-ID: Subject: Re: [v10 01/12] scripts: Add debrepo python script handling base-apt From: "'Florian Bezdeka' via isar-users" To: Aliaksei Karpovich , isar-users@googlegroups.com Cc: Uladzimir Bely , Aliaksei Laurynovich Date: Wed, 09 Sep 2026 11:37:07 +0200 In-Reply-To: <6f6c002a-1301-402e-831f-5bbe06c54d52@ilbers.de> References: <20260904075515.25962-1-akarpovich@ilbers.de> <20260904075515.25962-2-akarpovich@ilbers.de> <0bfc4f717c8a33cdd17227e3d2e07484a0e02e08.camel@siemens.com> <6f6c002a-1301-402e-831f-5bbe06c54d52@ilbers.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-68982:519-21489:flowmailer X-Original-Sender: florian.bezdeka@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=gzukvf8Z; spf=pass (google.com: domain of fm-68982-20260909093707731032b3ed00020774-5dahqn@rts-flowmailer.siemens.com designates 185.136.65.226 as permitted sender) smtp.mailfrom=fm-68982-20260909093707731032b3ed00020774-5dAhQN@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: Florian Bezdeka Reply-To: Florian Bezdeka 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-Spam-Status: No, score=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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-TUID: uqZ7rqUwbraG On Wed, 2026-09-09 at 12:30 +0300, Aliaksei Karpovich wrote: > On 9/4/26 11:14, Florian Bezdeka wrote: > >=20 > > On Fri, 2026-09-04 at 09:52 +0200, Aliaksei Karpovich wrote: > > > From: Uladzimir Bely > > >=20 > > > 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"). > > >=20 > > > Once initialized with `--init --workdir=3D`, it stores the init= ial > > > configuration in `repo.opts` file inside the context and uses it at > > > futher calls. > > >=20 > > > In future, the logic `debrepo` script implements could be directly > > > implemented inside bitbake classes. > > >=20 > > > Signed-off-by: Uladzimir Bely > > > Signed-off-by: Aliaksei Karpovich > > > Signed-off-by: Aliaksei Laurynovich > > > --- > >=20 > > [snip] > > >=20 > > > +=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.r= epodir}/repo.lock", 'w') > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 fcntl.flock(fd, fcntl.LOC= K_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 "= reprepro", > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "= --dbdir", 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 "= --outdir", 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 "= --confdir", 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 "= includedeb", > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 s= elf.ctx.codename, > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 i= tem.destfile > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ]= , timeout=3DREPREPRO_TIMEOUT) > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 fd.close() > > > + > >=20 > > 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= ? > >=20 > > Florian > > =C2=A0 > >=20 > >=20 > >=20 >=20 > In this case the child_exception_type is raised in subprocess.py. >=20 > =C2=A0Aliaksei. > =C2=A0 Questions coming to mind: - But what is the outcome then? Any half-done work where the last step failed? Unclean file system state, ... - Can a user derive from the exception handling (stack trace?) what exactly went wrong? - Shouldn't we fail early and inform the user about missing dependencies? --=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/= c4eb451a7e8e705f72f18c8de8d5e274d1de4bbe.camel%40siemens.com.