Fix fileAsStr to understand device files
authorfuzzyray <fuzzyray@gentoo.org>
Wed, 11 Oct 2006 20:32:07 +0000 (20:32 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Wed, 11 Oct 2006 20:32:07 +0000 (20:32 -0000)
svn path=/; revision=322

trunk/ChangeLog
trunk/src/equery/equery

index 1a19f1034b0401cf8b6853cb623ffe547c3af330..f5a68767d1790a4e53281ca891ccb8720fd4ebad 100644 (file)
@@ -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).
 
index 5dcb6dccc5edd855b7993f990793f0fe0999bdd6..6e69db078e50f32420253768de328f84d9a8e36e 100755 (executable)
@@ -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: