Skip to content

Commit

Permalink
Clean apt repositories cache
Browse files Browse the repository at this point in the history
Signed-off-by: Maxime Gervais <gervais.maxime@gmail.com>
  • Loading branch information
g-maxime committed Jun 4, 2023
1 parent 14cf69d commit e6daf0a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build_release/Repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,12 @@ def Add_deb_package(Package, Name, Version, Arch, Distribution, Release = False)
subprocess.call(Command, stdout=OUT, stderr=OUT)

# Update repository
Command = [ "freight-clear-cache", "-c", os.path.join(Cache_directory, "conf", "freight.conf"),
"-g", Configuration["Repo_key"]["key"],
"-p", Configuration["Repo_key"]["passfile"],
"apt/" + Dist
]"

Command = [ "freight-cache", "-c", os.path.join(Cache_directory, "conf", "freight.conf"),
"-g", Configuration["Repo_key"]["key"],
"-p", Configuration["Repo_key"]["passfile"],
Expand Down

0 comments on commit e6daf0a

Please sign in to comment.