packit / dist-git-to-source-git

Converting dist-git to source-git
MIT License
4 stars 9 forks source link

content of BUILD not a git repository #37

Closed dhodovsk closed 4 years ago

dhodovsk commented 4 years ago

For some packages, we get

    raise InvalidGitRepositoryError(epath)
git.exc.InvalidGitRepositoryError: /workdir/rpms/autofs/BUILD/autofs-5.1.4

git.Repo expect .git in the path.

Example packages ['autofs', 'autogen', 'socat'] - c8 branch

TomasTomecek commented 4 years ago

those packages are doing %setup and %patch - the true old school

the problem is that nor %setup nor %patch are defined in /usr/lib/rpm so d2s is not creating a git repo nor applying metadata

let me see how we can hijack this

csomh commented 4 years ago

those packages are doing %setup and %patch - the true old school

the problem is that nor %setup nor %patch are defined in /usr/lib/rpm so d2s is not creating a git repo nor applying metadata

let me see how we can hijack this

A few weeks ago this was working by replacing %setup with %gitsetup. Was this changed in any way?