X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mail.wilcox-tech.com (mail.wilcox-tech.com [45.32.83.9]) by lists.alpinelinux.org (Postfix) with ESMTP id 1A6F9F83214 for ; Wed, 1 May 2019 13:56:30 +0000 (UTC) Received: (qmail 17911 invoked from network); 1 May 2019 13:56:27 -0000 Received: from localhost (HELO gwyn.attlocal.net) (awilcox@wilcox-tech.com@127.0.0.1) by localhost with ESMTPA; 1 May 2019 13:56:27 -0000 From: "A. Wilcox" To: alpine-devel@lists.alpinelinux.org Cc: "A. Wilcox" Subject: [alpine-devel] [PATCH v2] list: Detect orphaned packages correctly Date: Wed, 1 May 2019 08:56:15 -0500 Message-Id: <20190501135615.33377-1-AWilcox@Wilcox-Tech.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190323172952.43760ffa@vostro> References: <20190323172952.43760ffa@vostro> 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="utf-8" Content-Transfer-Encoding: base64 QklUKDEpIGNvcnJlc3BvbmRzIHdpdGggZGVjaW1hbCAyLCB3aGljaCBpcyB0aGUgZmlyc3QgYXZh aWxhYmxlIHJlcG9zaXRvcnkuDQpCSVQoMCkgY29ycmVzcG9uZHMgd2l0aCBkZWNpbWFsIDEsIHdo aWNoIGlzIHRoZSBpbnN0YWxsZWQgcmVwb3NpdG9yeS4NCg0KQmVmb3JlIHRoaXMgZml4LCBgYXBr IGxpc3QgLU9gIHdvdWxkIGxpc3QgZXZlcnkgcGFja2FnZSBpbnN0YWxsZWQgZnJvbSB0aGUNCmZp cnN0IGF2YWlsYWJsZSByZXBvc2l0b3J5LCB3aGljaCBpcyB0aGUgJ3N5c3RlbScgcmVwb3NpdG9y eSBvbiBtb3N0IEFkw6lsaWUNCkxpbnV4IGNvbXB1dGVycy4NCg0KQWZ0ZXIgdGhpcyBmaXgsIGBh cGsgbGlzdCAtT2AgY29ycmVjdG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