You are not logged in.

#1 2015-12-24 20:09:52

letian_north
Member
Registered: 2012-11-28
Posts: 19

[SOLVED] Changed git repository name, how to update AUR package?

My AUR package points to git repository which I recently renamed.
How do I update my AUR package now?

Last edited by letian_north (2015-12-24 21:10:06)

Offline

#2 2015-12-24 20:14:15

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

Re: [SOLVED] Changed git repository name, how to update AUR package?

I'm not sure if I'm missing something here, but you update your PKGBUILD to point to the new URL. If the project has changed names, and you want to resubmit the package under the new name, do so, then request a merge from the old package to the new package.


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 2015-12-24 20:17:46

letian_north
Member
Registered: 2012-11-28
Posts: 19

Re: [SOLVED] Changed git repository name, how to update AUR package?

Updated PKGBUILD, committed my changes accordingly. However, when I attempt to do push from my local repository I receive:

git push origin master
Counting objects: 30, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (27/27), done.
Writing objects: 100% (30/30), 24.23 KiB | 0 bytes/s, done.
Total 30 (delta 6), reused 0 (delta 0)
remote: error: The following error occurred when parsing commit
remote: error: 75642f6af27b5d688f2797f8c4f27e864b9d8299:
remote: error: the repository must not contain subdirectories
remote: error: hook declined to update refs/heads/master
To ssh://aur@aur.archlinux.org/mtran.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://aur@aur.archlinux.org/mtran.git'

This is where my project resides.
https://aur.archlinux.org/multitran_er.git

Last edited by letian_north (2015-12-24 20:21:19)

Offline

#4 2015-12-24 20:20:16

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

Re: [SOLVED] Changed git repository name, how to update AUR package?

So what changes did you make?


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

#5 2015-12-24 20:26:20

letian_north
Member
Registered: 2012-11-28
Posts: 19

Re: [SOLVED] Changed git repository name, how to update AUR package?

In my github.com account, I went into settings and renamed an original repository. I also renamed the script filename.
Locally, I renamed my folder, local script and PKGBUILD.
In PKGBUILD, I changed pkgname, url, source, md5sums and package() function accordingly.
After that I committed my changes and attempted to push.

Honestly, it would be better if I could just remove the package from AUR.

Last edited by letian_north (2015-12-24 20:27:29)

Offline

#6 2015-12-24 20:51:01

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

Re: [SOLVED] Changed git repository name, how to update AUR package?

That doesn't explain the subdirectory error..

If you have renamed the package (i.e. changed the pkgbase, or if there is no pkgbase, changed the pkgname), you will need to update the git remote url too. Once you have pushed to the new pkgbase, you will need to file a merge request using the web interface.

To understand the situation better, it'd help if you showed the git diff between the previous working version, and the current version you are trying to push.


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

#7 2015-12-24 20:56:04

letian_north
Member
Registered: 2012-11-28
Posts: 19

Re: [SOLVED] Changed git repository name, how to update AUR package?

I do appreciate your help.
I just don't want to waste your time and mine as well on this issue.
It already appears not to be that straightforward, so I disowned and flagged the old package as out-of-date and created a new repository of the same package with a new name.

Last edited by letian_north (2015-12-24 20:56:55)

Offline

#8 2015-12-24 20:59:23

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

Re: [SOLVED] Changed git repository name, how to update AUR package?

That's fine too, but rather than leaving derelict packages cluttering up the AUR, it would be better to file a merge or deletion request.


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

#9 2015-12-24 21:09:53

letian_north
Member
Registered: 2012-11-28
Posts: 19

Re: [SOLVED] Changed git repository name, how to update AUR package?

WorMzy wrote:

That's fine too, but rather than leaving derelict packages cluttering up the AUR, it would be better to file a merge or deletion request.

I agree. I filed a deletion request.

Last edited by letian_north (2015-12-24 21:10:18)

Offline

Board footer

Powered by FluxBB