pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/37877: pkg_add -nu doesn't work as expected

>Number:         37877
>Category:       pkg
>Synopsis:       pkg_add -nu doesn't work as expected
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 26 17:45:00 +0000 2008
>Originator:     Roland Illig
The -n option of pkg_add doesn't simulate a package update correctly. It says 
the update is impossible while it clearly isn't.

$ pkg_add -nu /usr/pkg/packages/asciidoc-8.2.5nb2.tgz 
parsing: .
path: /home/roland/.
increasing RLIMIT_NOFILE to max. 1772 open files
Requested space: 987648 bytes, free space: 23098236928 bytes in 
running: /bin/tar --fast-read --use-compress-program gzip -xpf 
/usr/pkg/packages/asciidoc-8.2.5nb2.tgz +CONTENTS
running: /bin/tar --use-compress-program gzip -xpf 
pkg_add: other version 'asciidoc-8.2.5nb1' already installed
pkg_add: 1 package addition failed

$ echo $?

$ pkg_add -u /usr/pkg/packages/asciidoc-8.2.5nb2.tgz
$ echo $?


Home | Main Index | Thread Index | Old Index