Kaydet (Commit) 8f16b9d7 authored tarafından Suleyman Poyraz's avatar Suleyman Poyraz

Renkler geri alındı.

üst 01f418c1
......@@ -59,7 +59,8 @@ def package_conflicts(pkg, confs):
def calculate_conflicts(order, packagedb):
"""
Return a tuple of the conflicting packages information -> tuple
@param packages: list of package names -> list_of_strings
@param order: list of package names -> list_of_strings
@param packagedb: package database
"""
# check conflicting packages in the installed system
......
......@@ -171,14 +171,13 @@ class ArchiveBase(object):
self.type = atype
def unpack(self, target_dir, clean_dir=False):
self.target_dir = target_dir
# first we check if we need to clean-up our working env.
if os.path.exists(self.target_dir):
if os.path.exists(target_dir):
if clean_dir:
util.clean_dir(self.target_dir)
util.clean_dir(target_dir)
if not os.path.exists(self.target_dir):
os.makedirs(self.target_dir)
if not os.path.exists(target_dir):
os.makedirs(target_dir)
class ArchiveBinary(ArchiveBase):
......@@ -865,13 +864,12 @@ class SourceArchive:
self.url = inary.uri.URI(archive.uri)
self.archiveFile = os.path.join(ctx.config.archives_dir(), self.url.filename())
self.archive = archive
self.progress = None
def fetch(self, interactive=True):
if not self.is_cached(interactive):
if interactive:
self.progress = ctx.ui.Progress
else:
self.progress = None
try:
ctx.ui.info(_("Fetching source from: {}").format(self.url.uri))
......
......@@ -157,14 +157,6 @@ class Constants(metaclass=Singleton):
'brightmagenta': "\033[01;35m",
'brightcyan': "\033[01;36m",
'brightwhite': "\033[01;37m",
'backgroundblack': "\033[01;40m",
'backgroundred': "\033[01;41m",
'backgroundgreen': "\033[01;42m",
'backgroundyellow': "\033[01;43m",
'backgroundblue': "\033[01;44m",
'backgroundmagenta': "\033[01;45m",
'backgroundcyan': "\033[01;46m",
'backgroundwhite': "\033[01;47m",
'faintblack': "\033[02;30m",
'faintred': "\033[02;31m",
'faintgreen': "\033[02;32m",
......
......@@ -132,7 +132,7 @@ def upgrade(A=None, repo=None):
a minimum or maximum number of upgrades according to options.
Upgrades the given packages, if no package given upgrades all the packages
@param packages (A): list of package names -> list_of_strings
@param A: list of package names -> list_of_strings
@param repo: name of the repository that only the packages from that repo going to be upgraded
"""
if A is None:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment