You are not logged in.

#1 2020-01-09 09:22:16

Registered: 2017-04-24
Posts: 12

[SOLVED] How to properly rename source files?

I have used git mv old-name new-name to rename some files (which are included in the source array) and changed the PKGBUILD and .SRCINFO to the new name and the package is built succesfully, but it refuses to push to AUR.

remote: error: The following error occurred when parsing commit
remote: error: 7f856d0e42b308ec79a1bc30fd4f80891c679963:
remote: error: missing source file:
remote: error: hook declined to update refs/heads/master
To ssh://
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://'

Last edited by huupoke12 (2020-01-09 13:01:04)


#2 2020-01-09 11:14:22

Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 9,796

Re: [SOLVED] How to properly rename source files?

All commits need to be correct when you push to the AUR. Commit id 7f856d0e42b308ec79a1bc30fd4f80891c679963 had listed as a source file, but that file wasn't present in the repository at that time. You need to fix that commit (and any others that are broken).

See e.g.

Mod note: Moving to AUR Issues

Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: nVidia GeForce GTX 970 // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 5x 1TB HDD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.


#3 2020-01-09 12:17:29

Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 3,428

Re: [SOLVED] How to properly rename source files?

I see this commit finally got successfully pushed as … 879b9caa8d

The original version did not have the .SRCINFO properly regenerated.

Managing AUR repos The Right Way -- aurpublish (now a standalone tool)


#4 2020-01-09 12:24:34

Registered: 2017-04-24
Posts: 12

Re: [SOLVED] How to properly rename source files?

Yeah, I had figured it out. I had modified only the filename and PKGBUILD but not .SRCINFO (.SRCINFO is modified in the next commit) so I soft resetted and re-commit again.

Last edited by huupoke12 (2020-01-09 12:25:21)


Board footer

Powered by FluxBB