cabal-rpm icon indicating copy to clipboard operation
cabal-rpm copied to clipboard

cblrpm no longer supports tarball argument

Open relrod opened this issue 10 years ago • 3 comments

Seeing this when trying to package a local .tar.gz of a nonpublished cabal package:

ricky@t520 ⚡53% ~/haskellspecs$ ls | grep rcbot-1.0.0
rcbot-1.0.0.tar.gz

ricky@t520 ⚡53% ~/haskellspecs$ cblrpm srpm rcbot-1.0.0.tar.gz
cabal: The file does not exist 'rcbot-1.0.0.tar.gz'.
cblrpm: user error ("cabal unpack -v0 rcbot-1.0.0.tar.gz" failed with status 1)

relrod avatar Oct 12 '14 00:10 relrod

Ok, let me think: current git uses the rpmbuild defaults: ie looks in ~/rpmbuild/SOURCES/ (iirc), unless it is a .git dir.

I guess I'll change it to also check the cwd.

At least I assume that's what is going on: though it should be copying the tarball to the right dir.

juhp avatar Oct 12 '14 13:10 juhp

(Okay, I missed nonpublished...)

Ah I guess the actual problem is that cblrpm currently does not accept a tarball argument, though I am planning to add back support for it.

Workaround is to explode the tarball and run cblrpm on that directory.

juhp avatar Oct 14 '14 05:10 juhp

Ok, that will work for now.

relrod avatar Oct 14 '14 05:10 relrod