Skip to content
This repository was archived by the owner on Jan 27, 2023. It is now read-only.

Commit 5b5e875

Browse files
Merge pull request #17 from keimlink/ack-python-2-compatibility
Fixed Ubuntu version check
2 parents babe7f5 + 6a207ed commit 5b5e875

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

searchengines/ack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Ack (base.Base):
2222
def __init__(self, settings):
2323
base.Base.__init__(self, settings)
2424
# Ubuntu's ack from repos is called ack-grep by default
25-
if 'Ubuntu' in os.uname().version and self.path_to_executable=='ack' and os.system('which ack-grep')==0:
25+
if 'Ubuntu' in os.uname()[3] and self.path_to_executable=='ack' and os.system('which ack-grep')==0:
2626
self.path_to_executable = 'ack-grep'
2727

2828
engine_class = Ack

0 commit comments

Comments
 (0)