epm doesnt support file names with spaces: # epm -qf /usr/share/doc/divx4linux-20030428-r1/html/DivX\ MPEG-4\ Codec\ and\ Its\ Interface.htm file /usr/share/doc/divx4linux-20030428-r1/html/DivX MPEG-4 Codec and Its Interface.htm is not owned by any package # epm -qf /usr/share/doc/divx4linux-20030428-r1/html/ divx4linux-20030428-r1 # epm -ql divx4linux-20030428-r1 /usr/lib/libdivxencore.so /usr/lib/libdivxdecore.so /usr/lib/libdivxencore.so.0 /usr/lib/libdivxdecore.so.0 /usr/share/doc/divx4linux-20030428-r1/html/DivX /usr/include/encore2.h /usr/include/portab.h /usr/include/decore.h # epm -y divx4linux-20030428-r1 md5sum: /usr/share/doc/divx4linux-20030428-r1/html/DivX: No such file or directory md5sum: MPEG-4: No such file or directory md5sum: Codec: No such file or directory md5sum: and: No such file or directory md5sum: Its: No such file or directory md5sum: Interface.htm: No such file or directory ..5..... /usr/share/doc/divx4linux-20030428-r1/html/DivX MPEG-4 Codec and Its Interface.htm Reproducible: Always Steps to Reproduce:
patch for md5sum: --- /usr/bin/epm 2004-03-21 19:15:33.000000000 +0200 +++ /tmp/epm 2004-03-27 23:46:22.000000000 +0200 @@ -381,7 +381,7 @@ next; } if (-r _) { - ($md5 = `md5sum $Cname`) =~ s/\s.*//s; + ($md5 = `md5sum "$Cname"`) =~ s/\s.*//s; } else { $md5 = 'UNKNOWN'; btw: epm -qi epm Name : epm Version : 0.8.5 Release : Slot: 0 Install date: Sun Mar 21 19:15:33 2004 Build Host: i686-pc-linux-gnu Group : app-portage License: GPL-2 Size : 27796 Packager : agriffis URL : http://www.gentoo.org/~agriffis/epm/ Description : rpm workalike for Gentoo Linux
Fixed in 0.8.6, in portage now. Thanks.
thanks, but all bugs fixed: epm -ql doen't fixed: # epm -ql divx4linux /usr/lib/libdivxencore.so /usr/lib/libdivxdecore.so /usr/lib/libdivxencore.so.0 /usr/lib/libdivxdecore.so.0 /usr/share/doc/divx4linux-20030428-r1/html/DivX /usr/include/encore2.h /usr/include/portab.h /usr/include/decore.h # epm -qi epm Name : epm Version : 0.8.6 Release : Slot: 0 Install date: Tue Mar 30 07:37:02 2004 Build Host: i686-pc-linux-gnu Group : app-portage License: GPL-2 Size : 28024 Packager : agriffis URL : http://www.gentoo.org/~agriffis/epm/ Description : rpm workalike for Gentoo Linux
Created attachment 28349 [details, diff] patch to handle whitespace in filenames Maybe I'm missing something but this patch seems to work for me. The "work" at the end of the query function seems like overkill to me.
Created attachment 28357 [details, diff] fixed patch to properly deal with symlinks Doh! I did miss something. Does it count if I fixed it before anyone else noticed? ;-)
Thanks Michael, I added this in 0.8.7
Thanks a lot. It's great job.
Closing