X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mail-lf0-f66.google.com (mail-lf0-f66.google.com [209.85.215.66]) by lists.alpinelinux.org (Postfix) with ESMTP id 8BFD95C4250 for ; Fri, 26 Aug 2016 08:04:06 +0000 (GMT) Received: by mail-lf0-f66.google.com with SMTP id 33so3413566lfw.3 for ; Fri, 26 Aug 2016 01:04:06 -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-transfer-encoding; bh=I3nBNgOf+6CQg0ADYdanGLA1Cu6rPEIK5q1DeyFkUNw=; b=fo0JdeX291vyAHmyNVlsKAmvEzMdLqozBPm9prtnpfS78EVoB7CLKeXRvoxy4gim8J DD+pSB84bgWCRd+CRVJpJSiX8N0ulj1p85ZNjlaUYa8CKXu6K2FdAvZ/XHD7oxAdAPoQ uZIhcztocDNGbTnHUJkbEyUWXhOpDC3BBqSIczBfa160caNyWj6AmTZ2tSvFK/uG531x nPWoUGOyEwcBQgAtsA/7RGe3vJsmGRVOtHi0DcPdStc64Bm7UoJgIBSveWlGaPQReZhl gMtYlNwJmLC/LiDSXHoEOo/HqZYvHGXbf+/z9WyzOGMfTRBny00zFNUzC3NR6HS1lUnx nDRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=I3nBNgOf+6CQg0ADYdanGLA1Cu6rPEIK5q1DeyFkUNw=; b=W3OURczimHtQNWga/pSCA1n0R4cQ4BsiQgND89DHQmQyOX796W1YASCuJz40B+qDlG i3Q/E97eb+EkSJgoJBi+iJK1RPcF0C8zGCfhAmqVVSqWkQ8FgEN3rFGKbxx+aBwLzhnS /aG9BnSwNCaXtnkgw/d7fz242P74GU5gb/qz6dYTOBZW05T4zT9Q+FY4wITNmbxJ9W7d fT1+ATbGpa/YExm1XjyH5LhUhA7fE7XvRnKtxGowBYJqzsHmh+hKDr8Q2jBkv5//qeEk H5GfoWn/m2H5XrnoeLHzcaFEMIDyXgCGtWG83tFo2HO0SBmcLg0erJUMG8U1AiSh7t7X 0brw== X-Gm-Message-State: AE9vXwNsafUz5UsUaDQBOR6Wk+/bTPBb3bAxDMzqVignfAkN2aZvptrJ1lkNUUH6mgyG7w== X-Received: by 10.25.17.70 with SMTP id g67mr608099lfi.145.1472198645386; Fri, 26 Aug 2016 01:04:05 -0700 (PDT) Received: from vostro.util.wtbts.net ([2001:1bc8:101:f402:e66f:13ff:fef3:8cd0]) by smtp.gmail.com with ESMTPSA id f4sm3685115lji.41.2016.08.26.01.04.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Aug 2016 01:04:05 -0700 (PDT) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Fri, 26 Aug 2016 11:04:02 +0300 From: Timo Teras To: Alba Pompeo Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] Moving packages between repositories break systems Message-ID: <20160826110402.344a580f@vostro.util.wtbts.net> In-Reply-To: References: X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.28; 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 Thu, 25 Aug 2016 23:15:11 -0300 Alba Pompeo wrote: > When a package is moved from /testing to /community or /testing to > /unmaintained out of nowhere, users experience system breakage. > > That's because it loses the pinning. > > What can be done to prevent this? > Post-scripts when a package is moved? Do you have example logs? I remember seeing something similar before. And the actual cause was that abuild and/or lua-aports did not update the index when repository was updated with package removals only. This left index having stale entries. This said, lua-aports fix might be as simple as: diff --git a/buildrepo.lua b/buildrepo.lua index c665711..bf0f39a 100755 --- a/buildrepo.lua +++ b/buildrepo.lua @@ -239,7 +239,7 @@ for _,repo in pairs(args) do end -- generate new apkindex - if not opts.n and built > 0 then + if not opts.n and (built > 0 or deleted > 0) then info("Updating apk index") apkrepo.update_index(("%s/%s"):format(repodest, repo), abuild.arch, db:git_describe()) --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---