Skip to content

Commit

Permalink
Merge pull request #50938 from andzn/dev/andzn/opkg-implement-extra-r…
Browse files Browse the repository at this point in the history
…equirements-and-version-clean

Implement version_clean & check_extra_requirements in opkg module
  • Loading branch information
garethgreenaway authored Jan 3, 2019
2 parents 383d868 + af7b6bb commit d86bfc0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions salt/modules/opkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -1545,3 +1545,21 @@ def owner(*paths, **kwargs): # pylint: disable=unused-argument
if len(ret) == 1:
return next(six.itervalues(ret))
return ret


def version_clean(version):
'''
Clean the version string removing extra data.
There's nothing do to here for nipkg.py, therefore it will always
return the given version.
'''
return version


def check_extra_requirements(pkgname, pkgver):
'''
Check if the installed package already has the given requirements.
There's nothing do to here for nipkg.py, therefore it will always
return True.
'''
return True

0 comments on commit d86bfc0

Please sign in to comment.