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 BB54EF83184 for ; Thu, 21 Mar 2019 23:42:36 +0000 (UTC) Received: (qmail 13610 invoked from network); 21 Mar 2019 23:42:32 -0000 Received: from localhost (HELO gwyn.attlocal.net) (awilcox@wilcox-tech.com@127.0.0.1) by localhost with ESMTPA; 21 Mar 2019 23:42:32 -0000 From: "A. Wilcox" To: alpine-devel@lists.alpinelinux.org Cc: "A. Wilcox" Subject: [alpine-devel] [PATCH] list: Detect orphaned packages correctly Date: Thu, 21 Mar 2019 18:42:32 -0500 Message-Id: <20190321234232.33363-1-AWilcox@Wilcox-Tech.com> X-Mailer: git-send-email 2.21.0 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 cGsgbGlzdCAtT2AgY29ycmVjdGx5IGxpc3RzIG9ubHkgdGhlIHBhY2thZ2VzIHdoaW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