You are not logged in.

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

huupoke12
Member
Registered: 2017-04-24
Posts: 13

[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: osu-lazer.sh
remote: error: hook declined to update refs/heads/master
To ssh://aur.archlinux.org/osu-lazer-git.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://aur@aur.archlinux.org/osu-lazer-git.git'

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

Offline

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

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,788
Website

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

All commits need to be correct when you push to the AUR. Commit id 7f856d0e42b308ec79a1bc30fd4f80891c679963 had osu-lazer.sh 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. https://wiki.archlinux.org/index.php/Git#Undoing_things

Mod note: Moving to AUR Issues


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

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

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

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

I see this commit finally got successfully pushed as https://aur.archlinux.org/cgit/aur.git/ … 879b9caa8d

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


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

Offline

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

huupoke12
Member
Registered: 2017-04-24
Posts: 13

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)

Offline

Board footer

Powered by FluxBB