X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com [209.85.217.169]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 350AEDC00F2 for ; Thu, 9 Oct 2014 05:13:31 +0000 (UTC) Received: by mail-lb0-f169.google.com with SMTP id 10so432053lbg.28 for ; Wed, 08 Oct 2014 22:13:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=Zr0M2PnhJcITrx78Vu0NGm7BPDfBuXCHWw/JHaDznSs=; b=N7F4S++M9weafTFzm8FnJZGcMqyc23KkvBGwQI6B5HXnGqx2jEZkxvlOgz2PgcuN+V fWfHrGDqThQjz5MOmI2geNXhJ4ErgHtVw5XCOU5iRyk4/khVAULexnmiMOCVhryyNV6N 7NhL7B6fPPgl39Ki/Cgp1LbNvEjHAn8KhXCVAClkR1yfdlWGi855WXzXeUENp5VMQSfm Dj0fOqfmnqAAKagauECfX30gKK6ace+EgZdO9DZaBEKvQ4yrAKV8q6Lb/ZxRioC0xV3b YmlaX2jwvJ/RbU/caIAyQ7xUeipxgaxENMYTQW4BzNlObkyhiOjKy1MUnHUo+wSmZG9x Zb7A== X-Received: by 10.112.166.6 with SMTP id zc6mr15323452lbb.31.1412831609871; Wed, 08 Oct 2014 22:13:29 -0700 (PDT) Received: from vostro ([83.145.235.199]) by mx.google.com with ESMTPSA id a2sm641849lbs.21.2014.10.08.22.13.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Oct 2014 22:13:29 -0700 (PDT) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Thu, 9 Oct 2014 08:12:54 +0300 From: Timo Teras To: Jeff Pohlmeyer Cc: Alpine Subject: Re: [alpine-devel] apk-tools work-in-progress Message-ID: <20141009081254.2a09944c@vostro> In-Reply-To: References: <20141008131721.747fcc9d@vostro> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.23; x86_64-alpine-linux-musl) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 8 Oct 2014 09:06:41 -0500 Jeff Pohlmeyer wrote: > On Wed, Oct 8, 2014 at 5:17 AM, Timo Teras wrote: > > > If you have new patchsets, old ones that are rebased, something I > > missed or just other ideas for apk-tools, please reply to this mail. > > But what about this? > > # apk del no-such-package > OK: 1264 MiB in 519 packages > > # echo $? > 0 Should be simple to fix. Though, should we differentiate the following scenarios when a package is not removed? 1) no-such-package or package-not-installed are trivial and should flag error 2) package can be implicitly installed as dependency. apk del does not do anything with it. 3) package is in 'world' but also a dependency. apk del updates world but still does not remove the package. Are these all error conditions, or not? One option would be to return the number of packages names specified that were not removed. Any comments? --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---