From: fuzzyray Date: Wed, 11 Oct 2006 20:32:07 +0000 (-0000) Subject: Fix fileAsStr to understand device files X-Git-Tag: gentoolkit-0.2.4.3~191 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=36b30ab7754f3172988c2ca5d0e440768b0f55c7;p=gentoolkit.git Fix fileAsStr to understand device files svn path=/; revision=322 --- diff --git a/trunk/ChangeLog b/trunk/ChangeLog index 1a19f10..f5a6876 100644 --- a/trunk/ChangeLog +++ b/trunk/ChangeLog @@ -1,3 +1,7 @@ +2006-10-11 Paul Varner + * equery: Fix fileAsStr to understand device files. + (http://forums.gentoo.org/viewtopic-p-3639575.html) + 2006-10-07 Paul Varner * euse: Fix quoting bug in get_real_path() (Bug #150335). diff --git a/trunk/src/equery/equery b/trunk/src/equery/equery index 5dcb6dc..6e69db0 100755 --- a/trunk/src/equery/equery +++ b/trunk/src/equery/equery @@ -65,8 +65,11 @@ def fileAsStr(name, fdesc, showType=0, showMD5=0, showTimestamp=0): elif fdesc[0] == "fif": type = "fifo" fname = name + elif fdesc[0] == "dev": + type = "device" + fname = name else: - raise Exception(fdesc[1] + " has unknown type: " + fdesc[0]) + raise Exception(name + " has unknown type: " + fdesc[0]) s = "" if showType: