Skip to content

Commit

Permalink
Fixed issue #7
Browse files Browse the repository at this point in the history
  • Loading branch information
Savvas Radevic committed Nov 18, 2013
1 parent ec4f9b6 commit f6a3c4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kmpd.py
Expand Up @@ -52,7 +52,8 @@
soup = BeautifulSoup(source, "html.parser")
kernels = list()

rel = platform.release().replace("-\w*","")
rel = re.sub('-\w*', '', platform.release())
print("Current system kernel release version: {0}".format(rel))
for link in soup.find_all('a'):
href = link.get('href')
if not args.disable_filter:
Expand All @@ -62,7 +63,6 @@
continue
if href[0] == "v":
kver = href[1:-1] #strip first and last characters
rel = platform.release().replace("-\w*","")
vc = apt_pkg.version_compare(kver, rel)
if vc > 0:
# If kernel newer than current one
Expand Down

0 comments on commit f6a3c4e

Please sign in to comment.