[Bug 200604] pkg set -n ignores answer to confirmation prompt
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Jun 2 20:13:00 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200604
Bug ID: 200604
Summary: pkg set -n ignores answer to confirmation prompt
Product: Base System
Version: 10.1-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: bin
Assignee: freebsd-bugs at FreeBSD.org
Reporter: bugzilla at ndecker.de
pkg set -n will try to update the database even if the confirmation prompt was
answered with "n". Expected behaviour is to abort.
Test was run on PC-BSD 10.1.
[nde at pcbsd] /usr/local/etc# pkg set -n linux-c6-flashplugin:vim pcbsd-base
Change name from linux-c6-flashplugin to vim for
linux-c6-flashplugin-11.2r202.457? [y/N]: n
pkg: sqlite error while executing UPDATE deps SET name = ?1, version=(SELECT
version FROM packages WHERE name = ?1) WHERE package_id = ?2 AND name = ?3 in
file pkgdb.c:2551: UNIQUE constraint failed: deps.name, deps.version,
deps.package_id
[nde at pcbsd] /usr/local/etc# pkg set -n linux-c6-flashplugin:vim pcbsd-base
Change name from linux-c6-flashplugin to vim for
linux-c6-flashplugin-11.2r202.457? [y/N]: y
pkg: sqlite error while executing UPDATE packages SET name=?1 WHERE id=?2 in
file pkgdb.c:2551: UNIQUE constraint failed: packages.name
(I was trying to remove the dependency for flash in pcbsd-base. It fails
because vim is already a dependency. Therefore the sqlite error is justified.)
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list