1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-04-02 13:23:05 +02:00

- avoid crashes for requests without repository target

This commit is contained in:
Adrian Schröter 2012-11-20 15:29:30 +01:00
parent 7353cf99d7
commit ada0c02f92

View File

@ -2406,7 +2406,7 @@ class Request:
format an action depending on the action's type. format an action depending on the action's type.
A dict which contains the formatted str's is returned. A dict which contains the formatted str's is returned.
""" """
def prj_pkg_join(prj, pkg, repository): def prj_pkg_join(prj, pkg, repository=None):
if not pkg: if not pkg:
if not repository: if not repository:
return prj or '' return prj or ''