[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: package locally compiled gets "upgraded"



In <[🔎] 20090602162813.GA24136@fantomas.sk>, Matus UHLAR - fantomas wrote:
>I tried to locally recompile package "wwwoffle" because of some bugs in
> it. I have not changed the version hoping that the same version prevents
> apt from upgrading it.
>
>However apt runs "upgrade" while reinstalling the same version of package.
>Is there any way to tune this behaviour?
>
>I haven't changed the version so if any new version appeared in archive, I
>want to have it upgraded...

Alter the version number, but use something really "small" so the next 
version uploaded by a DD will trump yours.

e.g. If the bugs are in a native package version 1.2.3, make your version 
1.2.3local1

e.g. If the bugs are in a non-native package (I think wwwoffle is non-
native) version 1.2-2lenny1, make your version 1.2-2lenny1local1.

(If you end up needing to add more changes, you can increment the number 
following "local".)  You can always test how the packaging system will sort 
version numbers by using:
dpkg --compare-versions version_1 lt version_2; echo $?
(0 = true; 1 = false)

Alternatively, you could probably do version-pinning via origin, but I'm not 
sure about the specifics of that.
-- 
Boyd Stephen Smith Jr.           	 ,= ,-_-. =.
bss@iguanasuicide.net            	((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy 	 `-'(. .)`-'
http://iguanasuicide.net/        	     \_/

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: