<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def structureOutput(fileUrl, fileName, searchFiles, format=True, space=40):
 	"""Formats the output of a list of packages"""

	#First, remove the filename
	if format:
		splitUrls = fileUrl[1:].split('/')
		fileUrl = ""
		for splitUrl in splitUrls:
			# This is a gimmicky fix to make formatting consistent
			# Cemetech doesn't have /pub/ at the front of it's repo paths
			# Also, Omnimaga has a /files/ we need to get rid of similarly
			# This probably *should* be repo-dependent, but oh well
			if splitUrl != "" and (not "." in splitUrl) and (splitUrl != "pub" and splitUrl != "files"):
				fileUrl += splitUrl + '/'
			elif "." in splitUrl:
				archiveName = splitUrl

	#Now, format the output
	if searchFiles:
		fileName = archiveName
	pause = (space - len(fileUrl))
	output = fileUrl
	output += (" " * pause)
	output += fileName
	return output