From patchwork Fri Jul 6 08:15:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hesse X-Patchwork-Id: 678 Return-Path: Delivered-To: patchwork@archlinux.org Received: from apollo.archlinux.org (localhost [127.0.0.1]) by apollo.archlinux.org (Postfix) with ESMTP id 9C621549FF96 for ; Fri, 6 Jul 2018 09:01:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on apollo X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=DKIM_SIGNED=0.1, MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3,T_DKIM_INVALID=1 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-BL-Results: [127.0.9.2] Received: from orion.archlinux.org (orion.archlinux.org [IPv6:2a01:4f8:160:6087::1]) by apollo.archlinux.org (Postfix) with ESMTPS for ; Fri, 6 Jul 2018 09:01:22 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 03762BB40328A; Fri, 6 Jul 2018 09:01:19 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [IPv6:2a01:4f8:160:3033::2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS; Fri, 6 Jul 2018 09:01:18 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id E3E662C649; Fri, 6 Jul 2018 09:01:18 +0000 (UTC) Authentication-Results: luna.archlinux.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=eworm.de header.i=@eworm.de header.b=KzObhF9v Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 547A52C4FF for ; Fri, 6 Jul 2018 09:01:16 +0000 (UTC) Received: from orion.archlinux.org (orion.archlinux.org [IPv6:2a01:4f8:160:6087::1]) by luna.archlinux.org (Postfix) with ESMTPS for ; Fri, 6 Jul 2018 09:01:16 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 31D2FBB40326C for ; Fri, 6 Jul 2018 09:01:10 +0000 (UTC) Received: from mx.mylinuxtime.de (mx.mylinuxtime.de [IPv6:2a01:4f8:13a:16c2::25]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS for ; Fri, 6 Jul 2018 09:01:10 +0000 (UTC) Received: from leda.eworm.de (unknown [87.190.244.126]) (using TLSv1.2 with cipher DHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx.mylinuxtime.de (Postfix) with ESMTPSA id E437BE94E; Fri, 6 Jul 2018 11:01:09 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 mx.mylinuxtime.de E437BE94E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eworm.de; s=mail; t=1530867669; bh=/APy/d9jdsrQWIwiLofY6dstBQxpvvHWnqYHB++6sm4=; h=From:To:Cc:Subject:Date; b=KzObhF9v384rCk0tXyc/Rq33lS9l3DiWYh02SzyvdRGt3ttW9pqyPVlljoBFwMNjb 2Rqr+n9G+JWTRmJTM+MpEU70gBxwdiUWx79WgAsB3M0GkG1bZCyX3kfodl1U8fiQSs kXgInjjQ8Kr8KnIS02rQImEFr44dzLFfsJ3gnFu4= Received: by leda.eworm.de (Postfix, from userid 1000) id 1CF7F1013C8; Fri, 6 Jul 2018 10:15:42 +0200 (CEST) From: Christian Hesse To: arch-releng@archlinux.org Date: Fri, 6 Jul 2018 10:15:36 +0200 Message-Id: <20180706081536.30786-1-list@eworm.de> X-Mailer: git-send-email 2.18.0 Subject: [arch-releng] [PATCH 1/1] generate pkglist with query (not sync) operation X-BeenThere: arch-releng@archlinux.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Arch Linux Release Engineering List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Arch Linux Release Engineering Cc: Christian Hesse Errors-To: arch-releng-bounces@archlinux.org Sender: "arch-releng" From: Christian Hesse Using the sync operation with list option fails with --sysroot when signed database files are around. Instead use the query operation, which uses the local databases of installed pakages only. The only downside is that we do no longer record the originating repository. Signed-off-by: Christian Hesse --- archiso/mkarchiso | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/archiso/mkarchiso b/archiso/mkarchiso index cc66df4..4d4db50 100755 --- a/archiso/mkarchiso +++ b/archiso/mkarchiso @@ -266,8 +266,7 @@ command_pkglist () { _show_config pkglist _msg_info "Creating a list of installed packages on live-enviroment..." - pacman -Sl --sysroot "${work_dir}/airootfs" | \ - awk '/\[installed\]$/ {print $1 "/" $2 "-" $3}' > \ + pacman -Q --sysroot "${work_dir}/airootfs" > \ "${work_dir}/iso/${install_dir}/pkglist.${arch}.txt" _msg_info "Done!"