Howto mod 1 of sources

Jarod Wilson jwilson at redhat.com
Thu Apr 10 13:26:13 UTC 2008


On Thursday 10 April 2008 07:38:04 am Neal Becker wrote:
> Mary Ellen Foster wrote:
> > On 10/04/2008, Neal Becker <ndbecker2 at gmail.com> wrote:
> >> I have a package that has:
> >>  1 tarball
> >>  1 small added file
> >>
> >>  What is the procedure to update that 1 small added file?
> >>
> >>  Previously, 'sources' listed only the tarball, and cvs only seems to
> >>  know about it.
> >
> > http://fedoraproject.org/wiki/PackageMaintainers/UpdatingPackageHowTo
>
> I did read that page, bug didn't see this issue addressed.
>
> What I tried is:
>
>
> make new-sources FILES="~/RPM/SOURCES/mercurial-1.0.tar.gz 
> ~/RPM/SOURCES/mercurial-site-start.el"
>
> Just to be clear:
> both of these files were already present.  I made a minor change to the
> 2nd.

make upload FILES="new_version_of_file"

It'll supplant the old one and update sources accordingly with the new 
checksum.

> I have the feeling that this was not the correct thing to do.
> Previously, sources only listed the tar.

Never have used 'new-sources' myself, I've always just used 'upload'. Wouldn't 
be surprised if they were just aliases for one another though... Ah, no, 
they're a bit different. 'new-sources' blows away your existing sources file 
and only puts the new files in it. 'upload' adds the new file to your 
existing sources.

> If I move to F-8, and do cvs-update, I don't see the change to sources,
> which leads me to suspect I did the wrong thing.

If you changed sources in devel, then moved back to F-8, no, you wouldn't see 
the change there. You have to make the change on all branches you want it to 
show up on (sorta the point of branches... :). Or am I misunderstanding you?

-- 
Jarod Wilson
jwilson at redhat.com




More information about the fedora-devel-list mailing list