FS#19561 - [pkgtools] pkgfile leaves lockfile

Attached to Project: Community Packages
Opened by Kyle Keen (keenerd) - Saturday, 22 May 2010, 15:48 GMT
Last edited by Gavin Bisesi (Daenyth) - Thursday, 24 February 2011, 17:48 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Gavin Bisesi (Daenyth)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Pkgfile does not clean up its lock file if there is an abort.

Additional info:

pkgtools 19-1


Steps to reproduce:

Run "pkgfile --update" as a user.
Get error message "No write permissions to /var/cache/pkgtools/lists"
Rerun update with root privileges.
Get error message "Unable to take lock at /var/lock/pkgfile"

Workaround:

Manually delete the lockfile.

This task depends upon

Closed by  Gavin Bisesi (Daenyth)
Thursday, 24 February 2011, 17:48 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Lock files are not present in the python version.
Comment by Gavin Bisesi (Daenyth) - Saturday, 22 May 2010, 16:15 GMT
I actually fixed that a few days ago, just didn't think it was worth another package release.

http://github.com/Daenyth/pkgtools/commit/e77e4ab869d5c866690435b7eb96d5618cdfd40b
Comment by Dino Morelli (dino) - Sunday, 19 September 2010, 13:10 GMT
  • Field changed: Percent Complete (100% → 0%)
I'm still seeing emails from root cron user with the error "Unable to take lock at /var/lock/pkgfile" This is with pkgtools 21-1. Is this a different bug I'm seeing? Or not working in v20 as stated here?
Comment by Gavin Bisesi (Daenyth) - Saturday, 25 September 2010, 14:37 GMT
There's a ton of internal changes by now. It should be fixed in the next release.
Comment by Thomas Dziedzic (tomd123) - Friday, 10 December 2010, 17:30 GMT
Status?
Comment by Gavin Bisesi (Daenyth) - Friday, 10 December 2010, 18:22 GMT
Releasing soon
Comment by mattia (nTia89) - Saturday, 19 February 2011, 21:29 GMT
FIXED (pkgtools-22-1)

Loading...