summaryrefslogtreecommitdiff
path: root/trunk
diff options
context:
space:
mode:
authorfuzzyray <fuzzyray@gentoo.org>2006-10-11 20:32:07 +0000
committerfuzzyray <fuzzyray@gentoo.org>2006-10-11 20:32:07 +0000
commit36b30ab7754f3172988c2ca5d0e440768b0f55c7 (patch)
treefe73eb4cedb8a84e751896af2f61da93dd147090 /trunk
parent3129576632a82a31d22ba0655da70dcca3d1100a (diff)
downloadgentoolkit-36b30ab7754f3172988c2ca5d0e440768b0f55c7.tar.gz
Fix fileAsStr to understand device files
svn path=/; revision=322
Diffstat (limited to 'trunk')
-rw-r--r--trunk/ChangeLog4
-rwxr-xr-xtrunk/src/equery/equery5
2 files changed, 8 insertions, 1 deletions
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 <fuzzyray@gentoo.org>
+ * equery: Fix fileAsStr to understand device files.
+ (http://forums.gentoo.org/viewtopic-p-3639575.html)
+
2006-10-07 Paul Varner <fuzzyray@gentoo.org>
* 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: