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
>Release:        
>Organization:
>Environment:
>Description:
The -n option of pkg_add doesn't simulate a package update correctly. It says 
the update is impossible while it clearly isn't.

>How-To-Repeat:
$ 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 
/var/tmp/instmp.16292a
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 
/usr/pkg/packages/asciidoc-8.2.5nb2.tgz
pkg_add: other version 'asciidoc-8.2.5nb1' already installed
pkg_add: 1 package addition failed

$ echo $?
1

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


>Fix:




Home | Main Index | Thread Index | Old Index