Skip to content

Commit

Permalink
utils: add get_stable_debug_packages_directory()
Browse files Browse the repository at this point in the history
  • Loading branch information
Ozan Çağlayan committed Feb 18, 2011
1 parent 0d243d8 commit f902ccf
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions buildfarm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@ def get_package_log_directory():
conf.subrepository,
conf.architecture)

def get_compiled_debug_packages_directory():
return "%s-debug" % get_compiled_packages_directory()

def get_compiled_packages_directory():
return os.path.join(conf.binarypath,
conf.release,
conf.subrepository,
conf.architecture)

def get_compiled_debug_packages_directory():
return "%s-debug" % get_compiled_packages_directory()

def get_stable_packages_directory():
"""Return the stable packages repository if this is a testing buildfarm."""
if conf.subrepository == "testing":
Expand All @@ -107,6 +107,14 @@ def get_stable_packages_directory():
else:
return None

def get_stable_debug_packages_directory():
"""Return the stable debug packages repository if this is a testing buildfarm."""
stable_packages_directory = get_stable_packages_directory()
if stable_packages_directory:
return "%s-debug" % stable_packages_directory
else:
return None

def get_expected_file_name(spec):
last_update = spec.history[0]

Expand Down

0 comments on commit f902ccf

Please sign in to comment.