From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7199439568396877824 X-Received: by 2002:a05:600c:4417:b0:3e0:9fe:34ea with SMTP id u23-20020a05600c441700b003e009fe34eamr1332051wmn.77.1676250148204; Sun, 12 Feb 2023 17:02:28 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:4f0e:b0:3cf:9be3:73dd with SMTP id l14-20020a05600c4f0e00b003cf9be373ddls6898563wmq.3.-pod-canary-gmail; Sun, 12 Feb 2023 17:02:26 -0800 (PST) X-Google-Smtp-Source: AK7set+iCybHhio28EVJhwA5L1JP+0FcIH6ns6zo9YyMRo5rpLU+sM08W4P97FZ11f18BXy+WA1b X-Received: by 2002:a05:600c:2e96:b0:3df:7948:886b with SMTP id p22-20020a05600c2e9600b003df7948886bmr16771773wmn.31.1676250146928; Sun, 12 Feb 2023 17:02:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676250146; cv=none; d=google.com; s=arc-20160816; b=kFTdKmTfExz0KZQ30eGC09vf8ooYyFca8D8zhaaamWuaoIoj+w4J1YnNYWi1dflf4E 8maBPLqPM531CnM38BtsUqKegSaZqJ+P84HTexNi2CJfsUDKJ0sCPi7TZQQbpgxxznDE 5/3I61TwD1rV/T4ojsfdKJPH8XPEPcr8ApnmWwZekcb1kdd2BMMwt8C9aFM2OzhLiJ4d LRXpXYgAwdEI8UunDO9uzM7E8EHrkORFZSFFMfsdAjXI4swWQidGSY1EIY3ZMgbtJlFp osgN+2fbUXzdPusLW4K7/Eq2M7DOwAoa61GUE/gfkRCBvLRk7SvUEExkXonWc+ncpq2C 9SWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=iJzgYURsHkRadGt9aOOLBmCCkQjhNKU5I0N1rG083L0=; b=Xll5wLJ5WlZZwQQluD0iYXBUMb2jo+1uUE2oMvJb1K3lhP+W7Xew/CWFSuQCEw6ar9 bWN/H/qJpkmcsUg+aQHE372kG9ZXT5vwb+5Gpf1dUN54Gbf79q8m4OGyFmDTxBNJ3uBh G+2JR7OpUwuUAp5UdGbGeqX/WMDJ9e4krvB9pDENwYdMUZUEFOGT5hvI3Jo8N3tSPAtz xvn4xUynPyNfMrqz0EvjD7rQiM5Qo+OgOWMPdnMsYMHhVRc15pg6mU6ohjjDgUAbIoh+ iDvPkADSqX4XO7F6otyfQe4ChLyqcmYSaLtpA6lHjDg/GmKLGgo8rWYIOJSRTjZw8Lje k8bA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of roberto.foglietta@linuxteam.org designates 2001:4b7a:2000:18::162 as permitted sender) smtp.mailfrom=roberto.foglietta@linuxteam.org Return-Path: Received: from relay01.th.seeweb.it (relay01.th.seeweb.it. [2001:4b7a:2000:18::162]) by gmr-mx.google.com with ESMTPS id b11-20020a05600003cb00b002c547397a4csi422269wrg.1.2023.02.12.17.02.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Feb 2023 17:02:26 -0800 (PST) Received-SPF: pass (google.com: domain of roberto.foglietta@linuxteam.org designates 2001:4b7a:2000:18::162 as permitted sender) client-ip=2001:4b7a:2000:18::162; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of roberto.foglietta@linuxteam.org designates 2001:4b7a:2000:18::162 as permitted sender) smtp.mailfrom=roberto.foglietta@linuxteam.org Received: from localhost.localdomain (unknown [IPv6:2a02:8071:3187:7b80:f718:b201:2ea6:242c]) by m-r1.th.seeweb.it (Postfix) with ESMTPA id 689FB1F6A2; Mon, 13 Feb 2023 02:02:23 +0100 (CET) From: roberto.foglietta@linuxteam.org To: isar-users@googlegroups.com Cc: roberto.foglietta@gmail.com Subject: [PATCH] deb-dl-dir: create directory before transfer .deb packages Date: Mon, 13 Feb 2023 02:02:13 +0100 Message-Id: <20230213010213.1251270-1-roberto.foglietta@linuxteam.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUID: WcBUtJ89BC9l From: "Roberto A. Foglietta" deb-dl-dir, patch suggestion Some times the folders that deb_dl_dir_ex/import deal with do not exist and they should create to avoid a useless failure. Bugfix for pending patch: * deb-dl-dir: Fallback to copying when import-export, v.2 Signed-off-by: Roberto A. Foglietta --- meta/classes/deb-dl-dir.bbclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/classes/deb-dl-dir.bbclass b/meta/classes/deb-dl-dir.bbclass index 4d5d4c9..ec35cdf 100644 --- a/meta/classes/deb-dl-dir.bbclass +++ b/meta/classes/deb-dl-dir.bbclass @@ -85,6 +85,7 @@ deb_dl_dir_import() { set -e printenv | grep -q BB_VERBOSE_LOGS && set -x + mkdir -p "${rootfs}var/cache/apt/archives/" "${pc}" find "${pc}" -type f -iname "*\.deb" |\ while read p; do sudo ln -Pf -t "${rootfs}"/var/cache/apt/archives/ "$p" 2>/dev/null || @@ -101,6 +102,7 @@ deb_dl_dir_export() { set -e printenv | grep -q BB_VERBOSE_LOGS && set -x + mkdir -p "${pc}" "${rootfs}/var/cache/apt/archives/" find "${rootfs}"/var/cache/apt/archives/ \ -maxdepth 1 -type f -iname '*\.deb' |\ while read p; do -- 2.34.1