Summary: | qpkg -c needs to handle spaces in filenames | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Ole Tange <bugs.gentoo.org> |
Component: | Tools | Assignee: | Portage Tools Team <tools-portage> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | bugs-janitor, lostlogic, mholzer |
Priority: | High | Keywords: | InVCS |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
fixes spaces in filenames for qpkg -l
Fixes handling of wildcard in filenames in qpkg -c -v |
Description
Ole Tange
2002-08-24 04:37:41 UTC
I'm giving this one to Brandon, as he's the qpkg maintainer. this is caused because there are spaces in filenames, added to the qpkg todo list media-libs/lcms-1.09 * 1/30 i don't get this error /usr/share/lcms/profiles/sRGB Color Space Profile.icm still exists It seems the problem is in the following section. I am not sure how to write the following in shell. # need to take ${line[1..n-2]} instead name=${line[1]} missing= [ ! -e ${name} ] && missing=1 # colorize name and compute mtime/md5 if [ "obj" = ${line[0]} ]; then [ -e ${name} ] && { # Needs to take ${line[n]} instead [ "${tcheck}" ] && mtime=${line[3]} [ "${tcheck}" ] && _mtime=`date -r ${na\ me} +%s` # Needs to take ${line[n-1]} instead [ "${mcheck}" ] && md5=${line[2]} [ "${mcheck}" ] && _md5=`md5sum ${name}\ |cut -f1 -d" "` } I'll take a look at this all ... maybe tomorrow, maybe not till next weekend... thanks for the hint. qpkg also can't handle spaces when it lists files. it truncates the displayed file name at the position of the first space. i'll attach a diff that fixes this for the -l case. Created attachment 10960 [details, diff]
fixes spaces in filenames for qpkg -l
Another problem, probably closely related to handling spaces is handling of wildcard characters in filenames. For example, dev-util/guile-1.6.3 (not yet in portage tree, so far only in bugzilla) contains file "/usr/share/guile/1.6/ice-9/and-let*.scm", which seem to confuse qpkg. Attached is a simple fix to it, not sure if it is complete. Created attachment 11065 [details, diff]
Fixes handling of wildcard in filenames in qpkg -c -v
I'll take on this again. Summer cleanup in Gentoolkit Is this fixed yet? If not, please reopen. I did: emerge sync emerge gentoolkit emerge lcms qpkg -c -v lcms and I still get: media-libs/lcms-1.11 * /usr/share/lcms/profiles/sRGB !not exist! 1/33 pre8 is in CVS now |