(
self,
git_ref: str,
output_dir: str,
tar_compression_format: _TarCompressionFormat = _TarCompressionFormat.xz,
)
| 143 | _tarball_path: Path | None |
| 144 | |
| 145 | def __init__( |
| 146 | self, |
| 147 | git_ref: str, |
| 148 | output_dir: str, |
| 149 | tar_compression_format: _TarCompressionFormat = _TarCompressionFormat.xz, |
| 150 | ): |
| 151 | self._git_ref = git_ref |
| 152 | self._tar_compression_format = tar_compression_format |
| 153 | |
| 154 | self._tarball_dir = Path(output_dir, "tarball") |
| 155 | |
| 156 | self._get_commit_id() |
| 157 | self._create_tarball_dir() |
| 158 | |
| 159 | self._tarball_name = ( |
| 160 | f"dpdk-tarball-{self._git_ref}.tar.{self._tar_compression_format.value}" |
| 161 | ) |
| 162 | self._tarball_path = self._check_tarball_path() |
| 163 | if not self._tarball_path: |
| 164 | self._create_tarball() |
| 165 | |
| 166 | def _get_commit_id(self) -> None: |
| 167 | result = subprocess.run( |
nothing calls this directly
no test coverage detected