Skip to content

Commit

Permalink
utils: implement get_stable_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 8745de8 commit b8542bc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions buildfarm/utils.py
Expand Up @@ -96,6 +96,17 @@ def get_compiled_packages_directory():
conf.subrepository,
conf.architecture)

def get_stable_packages_directory():
"""Return the stable packages repository if this is a testing buildfarm."""
if conf.subrepository == "testing":
# Must have a corresponding stable repository
return os.path.join(conf.binarypath,
conf.release,
"stable",
conf.architecture)
else:
return None

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

Expand Down

0 comments on commit b8542bc

Please sign in to comment.