Commits

gl...@7322e99d-02ea-0310-aa39-e9a107903beb  committed b829c24

allwo take "package" from arguments, in case package name not possible to detect from repo path (i.e repo root)

  • Participants
  • Parent commits f5b630e

Comments (0)

Files changed (1)

File vcsreleaseinfomacro/VcsReleaseInfoMacro.py

         args += [None, None]
         path, limit = args[:2]
         limit = kwargs.pop('limit', limit)
+        package = kwargs.pop('package', None)
 
         if 'CHANGESET_VIEW' not in req.perm:
             return Markup('<i>Releases not available</i>')
         else:
             path = '/' + reponame.rstrip('/') + '/' + path.lstrip('/')
 
-        package = path.split("/")[-1]
+        if not package:
+            package = path.split("/")[-1]
+
         for i in xrange(len(releases) - 2):
             prev, cur, next = releases[i : i + 3]