From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7146503320914362368 X-Received: by 2002:a63:42c7:0:b0:438:e0dc:cc09 with SMTP id p190-20020a6342c7000000b00438e0dccc09mr6835503pga.128.1663927147605; Fri, 23 Sep 2022 02:59:07 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:902:e495:b0:178:35a3:84d9 with SMTP id i21-20020a170902e49500b0017835a384d9ls11643266ple.10.-pod-prod-gmail; Fri, 23 Sep 2022 02:59:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5rqqwthOmHLN+Q8E4FbaEilQ1iG10ytY7EjUe7ODCM4nA1Ubb+DderD9yVyB+T94DPbYhr X-Received: by 2002:a17:90a:db8c:b0:200:972f:7fe9 with SMTP id h12-20020a17090adb8c00b00200972f7fe9mr19979872pjv.127.1663927146667; Fri, 23 Sep 2022 02:59:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663927146; cv=none; d=google.com; s=arc-20160816; b=cPtPbzgNXcXw1ZwZwhjw7XGbw2e8eC5FtGNGLwYcTU0QNGOm+vdmywadhlLYYN8ER7 1J3FXpsyA9RZhCLGjphIp3dMCAWwG4tVkriQLCjjCgVVkSYn53lqT4oCOv+RrLeqaj6y t8tMfASfAaZC7NX/M3xypKjjw2cHB7f7IfLmF/eDVHYrUg/BtH8F5CuLh4c5MkJ0ab9r FqFZXuQWnf4P2HGqQQ3Z9K4YS2BW60X2Zpg25ky5AhddrP1LnSMZbX9oJfjcmNreRTHa tutURXxhhChc8iWbMxrHqbSKe1HSA6PEF4MRvWJtsyUZYDZFK1p8vS5+CNo8DpyfYUol rZdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=DLGlWW00RvIs6SZrw1m6gKGVWLbfDOpSLOQCLx/0SMc=; b=kmj6F9w1NkZvHFinnJeicw3G3jylL92FBO+JWJ5RVOaoMHA7nJZ93YKoXF3f6IgHSV 5fFHDarorU6/fWkfgyg3acGiQ9Qu4Wvj7cmqSLHSF3t9aT/Fu6V0tkoevKoFGq7gsoAt AjhMZiuc6bDEarpBzPDrPJFXYCWm2QDzW49ImbDjeiJGCC+YYvAdYTr0QfrXMYZ9y6cU s98Akn2IP3j0tZ34UmH6bmLTle6FzeuyWlT1Q3LKE2A7OuxB6Lhwo4sE7RkbK15IkXrA SgAcvOwGffhPIS4D2Fwu6g90RcmRe13jNe1bswlor6p1lRXW11N1FqKm+kdW0paj8IBS fGJQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="qjrn/A/J"; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::d33 as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com. [2607:f8b0:4864:20::d33]) by gmr-mx.google.com with ESMTPS id n11-20020a056a0007cb00b00537a63cf17dsi294874pfu.3.2022.09.23.02.59.06 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Sep 2022 02:59:06 -0700 (PDT) Received-SPF: pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::d33 as permitted sender) client-ip=2607:f8b0:4864:20::d33; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="qjrn/A/J"; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::d33 as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: by mail-io1-xd33.google.com with SMTP id g8so9938286iob.0 for ; Fri, 23 Sep 2022 02:59:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date; bh=DLGlWW00RvIs6SZrw1m6gKGVWLbfDOpSLOQCLx/0SMc=; b=qjrn/A/JwLqwuBZr3vZA3QxiTMNDnDPZyN5SKf//hB8Zt+n7HEx40o7S55KkQoCs+G JaFrJzzfUJ3CXk+lf+QY8ZufmdgjrOpVGRNlIVF6V0brCeDIbREq2smRiVZMBR9ZREh1 omhT09kAhxXOw420HxtxGAIPGFE7s/vzthjvn/NuKDpFnwAA7mdGLPqxUjnWLGRZrsyE HWoBlYcoWgpz4s+3U9dkvuBV4TxTBIHcmv3FRwOiGloeRsn5hf/LdFQtKv19M7dalMd+ W98c2uHhKk4fZUnIUYb0uFEcauoNKq8tTE/o6OEawIZTNuwkeVIBuHwk9KYu205jzpmN wjVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date; bh=DLGlWW00RvIs6SZrw1m6gKGVWLbfDOpSLOQCLx/0SMc=; b=l2Ie3G96dlAwow2kBqE6Fn56wJHbM9SrmD5EE9uIwdhnMlxq6Y49/liSzbNnAQlnDh CegT/muCC3ixILiA1hjHuc/3gAbJAISLPXIfkF59icG9i3F6ejMZp/aJZt3Y2X9s5vKz L6dqEbyNz61IRMKAJy+965lH9vQSyvtceQQT50KetjmDcT9gXkuayvTua2U7mSnivcgc 0XirZEgMFYW8+ll4YaId/PHfln0F9Smk+4uA4E+mXZ8sc4Ifho/d45lcC/wR9jJ7EvsX BeynejmgBazjnuB4/IDELVaC76pZ9eGIdcovFUBufzN8vc6d3RJEuA2Z4MB4Wp0IelVQ 6KHA== X-Gm-Message-State: ACrzQf1b2mipCCO0VIovzvyoBTu+81+RxJVkMqJhoW66unN/5rmO10xK SqIMhOMU0UNoUcJXSDpYYX+Bx+Kimi+lFVcNdbPWsMSjbg== X-Received: by 2002:a05:6638:24d6:b0:35a:632a:f8a2 with SMTP id y22-20020a05663824d600b0035a632af8a2mr4584796jat.262.1663927145740; Fri, 23 Sep 2022 02:59:05 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Roberto A. Foglietta" Date: Fri, 23 Sep 2022 11:58:53 +0200 Message-ID: Subject: Re: apt-mark hold package within postinst To: isar-users@googlegroups.com Content-Type: multipart/alternative; boundary="000000000000743bc205e9553a47" X-TUID: GCGtRn2hoYEd --000000000000743bc205e9553a47 Content-Type: text/plain; charset="UTF-8" Il Ven 23 Set 2022, 11:22 Roberto A. Foglietta ha scritto: > Hi all, > > .deb repackaged should not upgrade with any external source so they > should marked on hold. Easy but not possible to do within postinst > obviously. Not in a straight way, at least. Am I wrong? > This seems quite sane but it keeps the package in hold even if the users lately decide to upgrade it (possibly with a fixed version). echo 'APT::Update::Post-Invoke { "apt-mark hold pippo || true"; };' >> /etc/apt/apt.conf.d/99isar-repackage-hold My first try was to fork a process in post that waits the installation ends and then marks the package in hold. Opinions about? Best regards, R. --000000000000743bc205e9553a47 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Il Ven 23 Se= t 2022, 11:22 Roberto A. Foglietta <roberto.foglietta@gmail.com> ha scritto:
Hi all,
=C2=A0.deb repackaged should no= t upgrade with any external source so they should marked on hold. Easy but = not possible to do within postinst obviously. Not in a straight way, at lea= st. Am I wrong?

<= /div>
This seems quite sane but it keeps the package in ho= ld even if the users lately decide to upgrade it (possibly with a fixed ver= sion).

echo 'APT::Up= date::Post-Invoke { "apt-mark hold pippo || true"; };' >&g= t; /etc/apt/apt.conf.d/99isar-repackage-hold

My first try was to fork a process in post that waits = the installation ends and then marks the package in hold.

Opinions about?
Best regards, R.
--000000000000743bc205e9553a47--