OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003026 [pkg_get] regular use minor always 2009-01-18 18:10 2009-02-28 23:02
Reporter skayser View Status public  
Assigned To
Priority normal Resolution not fixable  
Status closed  
Summary 0003026: package installation from testing fails with: Need TWO args to newer_rev
Description Tried to install a package from testing as described on http://mirror.opencsw.org/testing.html, [^] but after download the catalog and descriptions files pkg-get just says: Need TWO args to newer_rev.
Additional Information # pkg-get -s http://mirror.opencsw.org/opencsw/testing [^] -U -i imapsync
WARNING: gpg not found
Getting catalog...
--2009-01-18 18:03:26-- http://mirror.opencsw.org/opencsw/testing/i386/5.10/cat [^]
alog
Resolving proxy.consol.de... 10.250.0.180

Connecting to proxy.consol.de|10.250.0.180|:8001... connected.
Proxy request sent, awaiting response... 200 OK
Length: 8949 (8.7K) [text/plain]
Saving to: `catalog'

100%[=======================================>] 8,949 1.94K/s in 4.5s

2009-01-18 18:03:31 (1.94 KB/s) - `catalog' saved [8949/8949]

Updating catalog file
/var/pkg-get/catalog-mirror.opencsw.org updated

--2009-01-18 18:03:31-- http://mirror.opencsw.org/opencsw/testing/i386/5.10/descriptions [^]
Resolving proxy.consol.de... 10.250.0.180
Connecting to proxy.consol.de|10.250.0.180|:8001... connected.
Proxy request sent, awaiting response... 200 OK
Length: 2317 (2.3K) [text/plain]
Saving to: `descriptions'

100%[=======================================>] 2,317 --.-K/s in 0.008s

2009-01-18 18:03:31 (269 KB/s) - `descriptions' saved [2317/2317]

Updated description file
Need TWO args to newer_rev
#
Tags No tags attached.
Attached Files ? file icon pkgget_get_remote_pkgversion.patch [^] (338 bytes) 2009-01-21 19:09

- Relationships

-  Notes
(0005491)
skayser (administrator)
2009-01-18 18:14

Doh, forgot the version information again ...

# pkginfo -x CSWpkgget
CSWpkgget pkg_get - CSW version of automated package download tool
           (all) 4.0.1,REV=2008.12.15
(0005495)
harpchad (reporter)
2009-01-21 19:09

This occurs for me as well when using the testing catalog. It looks like it's because the testing catalog does not have all packages in it, so get_remote_pkgversion returns null for the package version of packages it didn't find. This causes newer_rev to be called with a single argument (local revision, no remote revision). I attached a patch that makes get_remote_pkgversion return 0 for the revision when it doesn't find a revision in the catalog.
(0005590)
phil (manager)
2009-02-28 17:02

i think this is either as chad says, or the LC_ALL bug/issue.

I dont like chad's patch, because it IS an ERROR to have missing dependancies.
so.. closing this.

PS: at one point, I'm going to allow "shadow repository", which will fix this issue; you'll be able to set testing as that repository so it will all work out nicer in the future.
(0005594)
skayser (administrator)
2009-02-28 23:02

Phil, how about a descriptive error message then? :)


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker