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; Fri, 04 Sep 2026 10:14:33 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-ed1-f55.google.com (mail-ed1-f55.google.com [209.85.208.55]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 6848ESBf005228 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 4 Sep 2026 10:14:29 +0200 Received: by mail-ed1-f55.google.com with SMTP id 4fb4d7f45d1cf-6a63b6820f4sf576608a12.1 for ; Fri, 04 Sep 2026 01:14:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1788509663; cv=pass; d=google.com; s=arc-20260327; b=FHEW35/qbtjmPALEmwZDQibCL1chXq7mZctszd27BEFPvNV3yhDCqJlnoZkU+tbvxr Mu6bBoR7KnWuRkkXoCJ+4UQPRS2JZcr0F+AHpXqvmXuTGuX5pNtoMjHz+WoMl8CSX7dT aEfhcnzFHwzC3F8pNjhHOLYo8odUJQJeJwmuAo5cQ5Vk+3Wr3fRWg1bBhcEVwmLZu9iQ ZkNi4Bvmp90JR3tmFt6Q96n/R+VDinov/ZtvdkJ/z2Ge5jvTe837Zna05U/k6NbOuR01 q4eua+wZveikaC99kQ+wOePYaLbMIVLZ97aNwuihk8QgSyrTgW0ATWtLm+W30baFafiF xyFQ== 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=F+G0t/vXr4zIzD1/L1Jz3WHmwgWcQDUL+LCDrG+LuF4=; fh=xqs9vCD0z8wYhztEMshiFxTQvmgS9MiG72txmUCcU24=; b=g26ex6M04Yv7oD6iB4SQkXNh08m6hehEg+V39bWFvZiBz3uk2X0RbHkGJCPD/xox4f TKjwv4teScziuPfl0s7qR0VCIatfoxNgGUJZQ7dYne0t5+hI4nZT5wvYGE6qzG0thuLe zCinnGGC/R7mzJAD691Y2pTa3G4OPSot2TTq0zz9Z5PB5QJ0wB/kM2hg/lmIANVfb00g GBoQUbK6UUMz54d1l7IwMsaX6uXroA8F5/eWaEXjh05/Z0XFMxSQbGdAY/6llVzbslOR 20N71Vt5vhnoHgn9/LRY8pRUyt3cS9dxdMx4sl3x1dbZF8tVThY14N07/044xSzSLnna No7Q==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=FrYb7hhF; spf=pass (google.com: domain of fm-68982-202609040814182ad5c6eb8b00020716-vkap5h@rts-flowmailer.siemens.com designates 185.136.65.226 as permitted sender) smtp.mailfrom=fm-68982-202609040814182ad5c6eb8b00020716-vkAP5H@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=1788509663; x=1789114463; 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=F+G0t/vXr4zIzD1/L1Jz3WHmwgWcQDUL+LCDrG+LuF4=; b=QkAomd9ZrwzbjFj/MZh1j4WMwfqce74+M4Fl78DQAX+nJYdoXmfsxPGH9x6sE2kHV+ RYbWDanX1JtE6XZUy5KB/G5h7+NmDuCB/sNnm7oQVDQ9zPxW3pFyvBTEz/3oD9s9Xcy0 X5DIycVTqytkOL6y85GuxsniU4Hj6LlF/pPFDOH9GzT6DgO7wLlF2LDirGRZxBMEMKyi 0ZAr6MVnOxud9vQrjtviN1Q3R3N26A6MCvs44GCJlkMGY9i9It2zl3vUTznmbJ4Hk/Yr 5d1+6AOaM51WXgwJvlLtoyktb2fujvcAy2/WCGYeda4SPuaYjI3op3p3/JpyNLHPXbBC 1Vpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788509663; x=1789114463; 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=F+G0t/vXr4zIzD1/L1Jz3WHmwgWcQDUL+LCDrG+LuF4=; b=f5AvXhov1B1EbR237pGygTd/3CZOOowB1vWCkWoMQnxNB/eaQ8q0xDH7/jPhiwQ2YR z4+APpczm1reH5O8qssq9me6Uy1bK1AEYo3I80WEc8r4RNL1prsO2op/zwhFzmIeiVhI RqL/FFpQbocEJH5/WZ62aVVaOSgzhHgz92D+f/S47F64XypsTGtvZUimnydso7TIZU7y VZwQSS2hzc+T04Ueh4bfI08ZSTAjH/OQpPJUSggIZDXe1oL0dURIi+y2vU7TgPbAaHCk ohHQ9qxgzM079YofriCkE5QyHe/k2wsYBr1ZPWSu/c3H585+P6BUucAAYDqWU6rZbFbx yAmw== X-Forwarded-Encrypted: i=2; AKwUvByEbVSCVTmuExEW8xikfmQJd8ibbjQ9G/Vy28jEi1RxvVdwGcPga1VVUv3KAVKEWBnzFuyY@ilbers.de X-Gm-Message-State: AFuF++nac42bj+C1VvcpCUQgjKiHdYpVDs3gOEwY8rpQ5Jx3B2L/69jj 1hP2qwx9CBVe7qQCgPrcRO/b+TgEw/PQzNOefwN38aa6BAW9AcYTMSaX X-Received: by 2002:a05:6402:21d0:b0:6a7:ea54:387 with SMTP id 4fb4d7f45d1cf-6a7ea542178mr701296a12.24.1788509663155; Fri, 04 Sep 2026 01:14:23 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="ATskLdebNaoKQ+4slWBnH57EuwFNETzUZJovWTre4a6NYl6S+Q==" Received: by 2002:a05:6402:52d4:b0:6a1:e7a9:7995 with SMTP id 4fb4d7f45d1cf-6a7e54766ddls1002156a12.0.-pod-prod-05-eu; Fri, 04 Sep 2026 01:14:21 -0700 (PDT) X-Forwarded-Encrypted: i=2; AKwUvByE8U7zCUePj19us0DGIsalFkxe7Dm76+6P9zhFx0KeL74mCMG+NQpVLy5ZUG57EMrhGUmXVqe7pUrH@googlegroups.com X-Received: by 2002:a17:906:c116:b0:c25:9b8:30d6 with SMTP id a640c23a62f3a-c260c9964dbmr172852666b.12.1788509660788; Fri, 04 Sep 2026 01:14:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1788509660; cv=none; d=google.com; s=arc-20260327; b=ebFlwDWvtvEYc+eyzaoL+Y5/fI9OlK2m2FJ98UYztd3xBGJiSmc45pyCYO/BTXwI/G AkNZ4ZJmHZcnIuuDtaVt8i16CpHY2CjSZOWXyh1MtL1BRzylXHsLvq/jR0R+wWL+csxi 4ktjMHqtDW0yZcWwieVV0eBK2/vmWtPPe2KE8WGNJjf/5Z7Ab/hEpCyc3EquZePAU/YS 0Wa68Wz1i/eDgTh1Zvau2fNv9CI1toHEMDe3iy3IhwX2BqqLT298Odmsz+idfkH9tX4l YtxIbpiGhmvRYLEF87OXUk53r3axbDtpPVMvTQln/6MWkpHu3aLaOY3ovxeaSb/8wgEk XLCg== 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=CX/hG32v9X5AYpVcYcxkUvGEPY7zrcvLBIaf8YW2oh4=; fh=7L3FVIoHZgiEnULiWRLmtbjNda9AqFUTeUM+9VAMJo8=; b=HwSyqJTG1SBY1ku2Aw9pcn3ZzfbRg902UaaiegBFzGSt6G5bO9+7RVIVJ/uGZXuDGc rr1XLFpOlv1Qm+IWWEQUypRiw9L16aCBS4w/Ou45grQwqTR6NiPGNoVcdMpSsLUNBzRS hYx6Mkap7OMaqyA2PMhomb7ropn2v2qBO8FuUC0hh7QW3nvbxMi3Y7qc3ZQg5TggeqO+ dIFWWJ0+Y+C1dIye1AyYBTMlnjUp7WNJZnhh4tjCU74B2y/5aWKR0GGeAIJUHT4jGkrO Y3+HyGfxLpqt0rNpenfZ4BxFf+k4uHDNnNxqdan7ee95yJxT4asYvpDl5zTUnT0CKafx /ALA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=FrYb7hhF; spf=pass (google.com: domain of fm-68982-202609040814182ad5c6eb8b00020716-vkap5h@rts-flowmailer.siemens.com designates 185.136.65.226 as permitted sender) smtp.mailfrom=fm-68982-202609040814182ad5c6eb8b00020716-vkAP5H@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 a640c23a62f3a-c260cb58a10si3480466b.0.2026.09.04.01.14.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Sep 2026 01:14:20 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-68982-202609040814182ad5c6eb8b00020716-vkap5h@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 202609040814182ad5c6eb8b00020716 for ; Fri, 04 Sep 2026 10:14:18 +0200 Message-ID: <0bfc4f717c8a33cdd17227e3d2e07484a0e02e08.camel@siemens.com> 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: Fri, 04 Sep 2026 10:14:17 +0200 In-Reply-To: <20260904075515.25962-2-akarpovich@ilbers.de> References: <20260904075515.25962-1-akarpovich@ilbers.de> <20260904075515.25962-2-akarpovich@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=fm2 header.b=FrYb7hhF; spf=pass (google.com: domain of fm-68982-202609040814182ad5c6eb8b00020716-vkap5h@rts-flowmailer.siemens.com designates 185.136.65.226 as permitted sender) smtp.mailfrom=fm-68982-202609040814182ad5c6eb8b00020716-vkAP5H@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: U4+5YPEdCBZR 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 initial > 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] > +=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.repod= ir}/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 "repr= epro", > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "--db= dir", 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 "--ou= tdir", 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 "--co= nfdir", 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 "incl= udedeb", > +=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 ], ti= meout=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 --=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/= 0bfc4f717c8a33cdd17227e3d2e07484a0e02e08.camel%40siemens.com.