When getting the latest version of a package from a perforce repository I was getting the following error:
Can’t clobber writable file
And of course the file was not being updated. Remember that all the files in perforce are marked as read-only unless opened by the ‘p4 edit’ command. I did a ‘p4 opened’ to check if the file had been opened for edit. It was not. Then I checked the permissions and found that the file was marked as writable.
Simply removing the writable field from the permissions of the file did the trick.
chmod -w <filename>
Now when I did a ‘p4 sync’ the file got updated. Happy.
Popularity: 1% [?]