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 83DC9F83214 for ; Wed, 1 May 2019 13:59:27 +0000 (UTC) Received: (qmail 17943 invoked from network); 1 May 2019 13:59:25 -0000 Received: from localhost (HELO gwyn.attlocal.net) (awilcox@wilcox-tech.com@127.0.0.1) by localhost with ESMTPA; 1 May 2019 13:59:25 -0000 From: "A. Wilcox" To: alpine-devel@lists.alpinelinux.org Cc: "A. Wilcox" Subject: [alpine-devel] [PATCH v3] list: Detect orphaned packages correctly Date: Wed, 1 May 2019 08:59:16 -0500 Message-Id: <20190501135916.33879-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 aWxhYmxlIHJlcG9zaXRvcnkuDQoNCkJlZm9yZSB0aGlzIGZpeCwgYGFwayBsaXN0IC1PYCB3b3Vs ZCBsaXN0IGV2ZXJ5IHBhY2thZ2UgaW5zdGFsbGVkIGZyb20gdGhlDQpmaXJzdCBhdmFpbGFibGUg cmVwb3NpdG9yeSwgd2hpY2ggaXMgdGhlICdzeXN0ZW0nIHJlcG9zaXRvcnkgb24gbW9zdCBBZMOp bGllDQpMaW51eCBjb21wdXRlcnMuDQoNCkFmdGVyIHRoaXMgZml4LCBgYXBrIGxpc3QgLU9gIGNv cnJlY3RseSBsaXN0cyBvbmx5IHRoZSBwYWNrYWdlcyB3aGljaCBhcmUNCm5vIGxvbmdlciBhdmFp bGFibGUuDQotLS0NCiBzcmMvbGlzdC5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