()
| 140 | repo = self.db_repo_name(repo, deps) |
| 141 | |
| 142 | def _get_result() -> str | None: |
| 143 | # Check if we already exist |
| 144 | with self.connect() as db: |
| 145 | result = db.execute( |
| 146 | 'SELECT path FROM repos WHERE repo = ? AND ref = ?', |
| 147 | (repo, ref), |
| 148 | ).fetchone() |
| 149 | return result[0] if result else None |
| 150 | |
| 151 | result = _get_result() |
| 152 | if result: |