NetBSD Problem Report #48713

From  Sat Apr  5 15:16:18 2014
Return-Path: <>
Received: from ( [])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id 181E6A5807
	for <>; Sat,  5 Apr 2014 15:16:18 +0000 (UTC)
Message-Id: <>
Date: Sat,  5 Apr 2014 15:16:15 +0000 (UTC)
Subject: pkgin update does not update changes in local (file://) repository, while pkgin -f update does
X-Send-Pr-Version: www-1.0

>Number:         48713
>Category:       pkg
>Synopsis:       pkgin update does not update changes in local (file://) repository, while pkgin -f update does
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    imil
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 05 15:20:00 +0000 2014
>Last-Modified:  Sun Apr 06 00:25:53 +0000 2014
>Originator:     Volkmar Seifert
>Release:        NetBSD 6.1
NetBSD 6.1_STABLE NetBSD 6.1_STABLE (PANTHER-1.0) #0: Mon Mar 24 12:07:37 CET 2014  mjoellnir@cheetah:/work/netbsd/v6/work/amd64/panther/obj/work/netbsd/v6/src/sys/arch/amd64/compile/PANTHER amd64
Changes to the local repository (like adding a package through pkg_comp build some/package), "pkgin update" does not update its database.
A pkg_summary-file is present and updated in the local repository.
When I run "pkgin -f update" however, all packages (even the newly added) are inserted into pkgin's database.
1.) Create a local packages-repository, e.g. like when setting up pkg_comp
2.) add this repo to pkgin's repositories
3.) update pkgin
4.) add a package to repository, e.g. with pkg_comp build some/pkg
5.) run "pkgin update"

The new package won't be there.
As it's already known that pkgin uses the pkg_summary-file's mtime, this somehow doesn't seem to be enough to detect changes.
My suggestion is to switch from a date/time check to creating and checking a checksum, e.g. RMD160 or SHA1 - or maybe both for the paranoid.



Responsible-Changed-From-To: pkg-manager->imil
Responsible-Changed-When: Sun, 06 Apr 2014 00:25:53 +0000
Over to maintainer.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.