pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

qtile: Use isdir instead of isfile.



Module Name:	pkgsrc-wip
Committed By:	Nia Alarie <nia.alarie%gmail.com@localhost>
Pushed By:	nee
Date:		Sat May 19 18:47:06 2018 +0100
Changeset:	f4f1a260a2c9807084327b84f8c98588826b3cfc

Modified Files:
	qtile/distinfo
	qtile/patches/patch-libqtile_widget_battery.py

Log Message:
qtile: Use isdir instead of isfile.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=f4f1a260a2c9807084327b84f8c98588826b3cfc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 qtile/distinfo                                 | 2 +-
 qtile/patches/patch-libqtile_widget_battery.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs:
diff --git a/qtile/distinfo b/qtile/distinfo
index f0e0455651..510a30566a 100644
--- a/qtile/distinfo
+++ b/qtile/distinfo
@@ -4,5 +4,5 @@ SHA1 (qtile-0.11.1.tar.gz) = 296f41513cfa3cce949ce7a0830e54b1ee56e5e4
 RMD160 (qtile-0.11.1.tar.gz) = 1b71498ba6adf008bc02fb994f6e25b4c26941fa
 SHA512 (qtile-0.11.1.tar.gz) = 9cc2cdf5a01495c680fae62d23348d68cca456ce2c31848bef23825c943a5e8aebcc3ea70879388af06d222ab703dd410db14e6a9bd4180d90f57651b9dbaed5
 Size (qtile-0.11.1.tar.gz) = 442026 bytes
-SHA1 (patch-libqtile_widget_battery.py) = ddb56efdd1e9748cfa7dca436ad605ae0fb5cdb9
+SHA1 (patch-libqtile_widget_battery.py) = c3c6197ec92d8cd8d46276df7db4f81a7c02cb80
 SHA1 (patch-setup.py) = a00b26ba5e8114307e55c5e5328681039fd94df4
diff --git a/qtile/patches/patch-libqtile_widget_battery.py b/qtile/patches/patch-libqtile_widget_battery.py
index d3e3b444ab..bd478d49c9 100644
--- a/qtile/patches/patch-libqtile_widget_battery.py
+++ b/qtile/patches/patch-libqtile_widget_battery.py
@@ -14,7 +14,7 @@ Don't assume sysfs is present.
 -            return bats[0]
 -        else:
 -            return 'BAT0'
-+        if os.path.isfile(BAT_DIR):
++        if os.path.isdir(BAT_DIR):
 +            bats = [f for f in os.listdir(BAT_DIR) if f.startswith('BAT')]
 +            if bats:
 +                return bats[0]


Home | Main Index | Thread Index | Old Index