How do I update an existing package?

How do I import a SRPM package?

As an alternative, you can import a complete SRPM (.src.rpm) package to update an existing package, using a similar procedure to the initial package import.

The fedpkg tool (from the fedora-packager package) can commit entire src.rpm contents in one step. It uploads new tarballs into lookaside cache, updates a working copy of the last version found in git, and commits all changes. In case you prepare your update packages in an ordinary rpmbuild tree, you can use the script to import a finished update src.rpm in one step. Examples:

Run the command fedpkg import --help for the options it understands. It can also update modules in branch directories other than the default master.

Be careful, since fedpkg can also create non-existing git modules in the master branch on-the-fly. According to current policies, the creation of new modules needs approval. (Changed names here only -- is this accurate? --pfrields 21:33, 31 July 2010 (UTC))

Example for this method

Blind spotsWarning! This way may look easier, but it's not recommended because you can't check the changes that you have made against the version in git before you commit them. People have accidentally overwritten other packages with this method. Please make yourself familiar with above description.

Bug on packages with just a "master" branchWarning! There's currently a bug in fedpkg which prevents importing/uploading new sources if all you have is a "master" branch, with no "f-N" branches. The symptoms are

How do I add a new branch?

How do I remove a branch?

How do I make changes to an older branch?

Here is the scenario: you've build your package successfully on the f14 branch, but there is a problem keeping your package from building on f13.

Solution: make your changes in the branch and then add a digit to the very right of the release tag. There is no need to change the release in the other branches. This allows upgrades to work smoothly if the user upgrades to a newer release of Fedora.

How do I request a build?

I have an account but I can't connect to git via ssh

The fedpkg tool clones repositories using the ssh:// protocol, so this should not be a problem normally. If you cloned using the git utility itself, check the .git/config file to ensure the remote repository is being accessed via an ssh:// protocol, and not git://.

How do I update/import a new branch?

If a new branch is created on the server side, git pull should be able to pull the new branch.

Hints

Reusing the changelog

Use fedpkg clog to extract the last spec changelog entry and store it in a local "clog" file. Include this file as the git commit log message. This can be done with the following commands:

fedpkg clog
fedpkg commit -F clog

Expired Certificates (Error 255 or OpenSSL.SSL.Error)

This error usually means that your client certificate (~/.fedora.cert) has expired, so you need to run fedora-cert to get a new one.

You may need to rerun fedora-packager-setup
from the fedora-packager package, especially if you get the error: