David Bolt skrev:
On Tue, 13 Feb 2007, Anders Norrbring
wrote:- All of a sudden, my create_package_descr fails to complete.. I haven't edited anything by myself, so if there has been changes introduced, they've been made by the 10.2 system auto-update.
Can someone please advice?
# create_package_descr -d rpm/ -o setup/descr/ -x setup/descr/EXTRA_PROV
using settings: datadirs: rpm/ languages: english output dir: setup/descr/ is not a directory: ignoring extra_provides: setup/descr/EXTRA_PROV Can't call method "size" on an undefined value at /usr/bin/create_package_descr line 171. ....................................................................... ...........
I had the same problem which was caused by broken links[0]. My solution[1] was to get rid of them using:
find -L -type l -exec rm '{}' \;
Check to see if you have a zero-byte file or a broken link under rpm/. You'll probably find that was the cause.
[0] I create a local mirror of the update server using rsync, and then run create_package_descr on my local mirror. For some reason, some of the links created by rsync point to non-existent files and create_package_descr was falling over because of it.
[1] The second solution was to use --exclude src/*.spm as another option for rsync.
Regards, David Bolt
Thanks David! Deleting all symlinks helped.. I didn't even think about that. I've added it to my update scripts, and they seems to work just fine now! -- Anders Norrbring Norrbring Consulting