"--include=.timestamp",
]
+ paths = []
+
+ # Add all stable releases
+ async for distro in self.distros:
+ releases = await distro.get_releases()
+
+ for release in releases:
+ if not release.stable:
+ continue
+
+ paths.append(
+ release.local_path(),
+ )
+
# Add all mirrored repositories
async for repo in await self.repos.mirrored:
- path = os.path.relpath(repo.local_path(), self.basepath)
+ paths.append(
+ repo.local_path(),
+ )
+
+ # Add all paths
+ for path in paths:
+ # Make the path relative (again)
+ path = os.path.relpath(path, self.basepath)
commandline.append("--include=%s***" % path)
images.append(image)
return images
+
+ # Path
+
+ @property
+ def path(self):
+ """
+ Make the path
+ """
+ return "%s/%s" % (self.distro.slug, self.slug)
+
+ # Local Path
+
+ def local_path(self, arch=None):
+ """
+ Path to the releases
+ """
+ path = self.backend.path("releases", self.path)
+
+ # Append the architecture
+ if arch:
+ path = os.path.join(path, arch)
+
+ return path