CRUX

Welcome to CRUX bug tracking.
Tasklist

FS#434 - prt-get listlocked behaviour and error codes

Attached to Project: CRUX
Opened by Jose V Beneyto (sepen) - Monday, 06 April 2009, 13:27 GMT
Task Type Feature Request
Category tools → prt-get
Status New
Assigned To Johannes Winkelmann (jw)
Operating System CRUX
Severity Low
Priority Normal
Reported Version Development
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

after a fresh install you don't have /var/lib/pkg/prt-get.locker, so prt-get returns an error code and that isn't good for other tools which are dependent of prt-get:

# prt-get listlocked
Failed to open lock data file
# echo $?
255
# prt-get lock gcc && prt-get unlock gcc
# prt-get listlocked
# echo $?
0

IMHO, prt-get should provide the lock data file via .footprint or post-install script:

# touch /var/lib/pkg/prt-get.locker
# prt-get listlocked
# echo $?
0
This task depends upon

Comment by Johannes Winkelmann (jw) - Sunday, 16 September 2012, 19:16 GMT
I agree, but wonder whether it would be best to do so in Pkgfile for now; I guess one could argue that make install should install a working version... not sure for now. Care to fix it in Pkgfile for now?

Loading...