On Wed, Mar 16, 2022 at 10:57 AM Alexander Sosedkin <asosedkin(a)redhat.com>
wrote:
On Wed, Mar 16, 2022 at 3:47 PM Neal Becker
<ndbecker2(a)gmail.com> wrote:
>
> Sorry if this is a duplicate message, previous one was held for
moderation.
>
> $ fedpkg new-sources ~/Downloads/unuran-1.9.0.tar.gz
> Could not execute new_sources: Fail to upload files. Server returns
status 403
>
> I haven't been active in packaging for some time, did I miss something?
Just a guess, but given how new-sources also updates at least .gitignore,
I think it expects maintainers to have the file in the checkout.
Does it fail the same if you place it there and pass a relative filepath?
fedpkg new-sources unuran-1.9.0.tar.gz
fedpkg --verbose new-sources unuran-1.9.0.tar.gz
Creating repo object from /home/nbecker/fedora.git/unuran
Could not execute new_sources: Fail to upload files. Server returns status
403
Traceback (most recent call last):
File "/usr/bin/fedpkg", line 33, in <module>
sys.exit(load_entry_point('fedpkg==1.42', 'console_scripts',
'fedpkg')())
File "/usr/lib/python3.10/site-packages/fedpkg/__main__.py", line 89, in
main
sys.exit(client.args.command())
File "/usr/lib/python3.10/site-packages/pyrpkg/cli.py", line 2688, in
new_sources
self.cmd.upload(
File "/usr/lib/python3.10/site-packages/pyrpkg/__init__.py", line 3078,
in upload
self.lookasidecache.upload(
File "/usr/lib/python3.10/site-packages/pyrpkg/lookaside.py", line 298,
in upload
if self.remote_file_exists(name, filename, hash):
File "/usr/lib/python3.10/site-packages/pyrpkg/lookaside.py", line 259,
in remote_file_exists
self.raise_upload_error(status)
File "/usr/lib/python3.10/site-packages/pyrpkg/lookaside.py", line 128,
in raise_upload_error
raise UploadError(message, http_status=http_status)
pyrpkg.errors.UploadError: Fail to upload files. Server returns status 403
--
*Those who don't understand recursion are doomed to repeat it*