Don't generate task if there is no uids, fix repo generation

Change-Id: Ia49d967d07271d38c3b70615f42fa4365630c144