Re: Piotrek's new preferred Python helper tool - (unfair) decision

2009-03-03 Thread Josselin Mouette
Le lundi 02 mars 2009 à 16:29 -0800, Steve Langasek a écrit :
  And well, that might make pretty obvious to anyone not convinced yet
  that -central can't really be considered a “chosen one”, no?
 
 So how does python-support address this bug without instead making
 python-based programs excessively brittle during upgrades?

It does by running update-python-modules -p with a trigger, that is run
after the package’s files have been removed. All symbolic links that
point to removed files are then purged.

Cheers,
-- 
 .''`.  Debian 5.0 Lenny has been released!
: :' :
`. `'   Last night, Darth Vader came down from planet Vulcan and told
  `-me that if you don't install Lenny, he'd melt your brain.


signature.asc
Description: Ceci est une partie de message	numériquement signée


Re: Piotrek's new preferred Python helper tool - (unfair) decision

2009-03-02 Thread Ben Finney
Piotr Ożarowski pi...@debian.org writes:

 PS while converting [a package using python-central to use
 python-support], remember to add to preinst something like these 3
 lines:
 
 | if [ $1 = upgrade ]  dpkg --compare-versions $2 lt 1.2.3-4; then
 | pycentral pkgremove python-foo
 | fi

Why does this not happen automatically when the package is upgraded
from a version that uses python-central?

-- 
 \   “All progress has resulted from people who took unpopular |
  `\  positions.” —Adlai Stevenson |
_o__)  |
Ben Finney


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Piotrek's new preferred Python helper tool - (unfair) decision

2009-03-02 Thread Piotr Ożarowski
[Ben Finney, 2009-03-02]
 Piotr Ożarowski pi...@debian.org writes:
  PS while converting [a package using python-central to use
  python-support], remember to add to preinst something like these 3
  lines:
  
  | if [ $1 = upgrade ]  dpkg --compare-versions $2 lt 1.2.3-4; then
  |   pycentral pkgremove python-foo
  | fi
 
 Why does this not happen automatically when the package is upgraded
 from a version that uses python-central?

how can dh_pysupport know that x versions ago this package was using
python-central?
-- 
-=[ Piotr Ożarowski ]=-
-=[ http://www.ozarowski.pl ]=-


pgpPcI89omDXb.pgp
Description: PGP signature


Re: Piotrek's new preferred Python helper tool - (unfair) decision

2009-03-02 Thread Piotr Ożarowski
[Piotr Ożarowski, 2009-03-02]
 [Ben Finney, 2009-03-02]
  Piotr Ożarowski pi...@debian.org writes:
   PS while converting [a package using python-central to use
   python-support], remember to add to preinst something like these 3
   lines:
   
   | if [ $1 = upgrade ]  dpkg --compare-versions $2 lt 1.2.3-4; then
   | pycentral pkgremove python-foo
   | fi
  
  Why does this not happen automatically when the package is upgraded
  from a version that uses python-central?
 
 how can dh_pysupport know that x versions ago this package was using
 python-central?

well, it can at install time, let's file a wishlist bug

-- 
-=[ Piotr Ożarowski ]=-
-=[ http://www.ozarowski.pl ]=-


pgpcqznaHk8gS.pgp
Description: PGP signature


Re: Piotrek's new preferred Python helper tool - (unfair) decision

2009-03-02 Thread Piotr Ożarowski
[Ondrej Certik, 2009-03-03]
 why is the decision unfair?

because *I* think it's unfair as both tools deserve to be the chosen
one

Ondrej: stop reading debian-devel, you see trolls everywhere already ;-P

-- 
-=[ Piotr Ożarowski ]=-
-=[ http://www.ozarowski.pl ]=-


pgpaT3cZ1Nt8P.pgp
Description: PGP signature


Re: Piotrek's new preferred Python helper tool - (unfair) decision

2009-03-02 Thread Cyril Brulebois
Piotr Ożarowski pi...@debian.org (03/03/2009):
 [Cyril Brulebois, 2009-03-03]
  Piotr Ożarowski pi...@debian.org (02/03/2009):
   [Ben Finney, 2009-03-02]
Why does this not happen automatically when the package is upgraded
from a version that uses python-central?
   
   how can dh_pysupport know that x versions ago this package was using
   python-central?
  
  I suggest you check “6.6 Details of unpack phase of installation or
  upgrade” in the Policy.
  
  (I'm not sure whether -central is so buggy that it can't handle removal
  properly, but I guess it could be.)
 
 see #479852

OK. I guess it's the answer Ben was looking for.

And well, that might make pretty obvious to anyone not convinced yet
that -central can't really be considered a “chosen one”, no?

Mraw,
KiBi.


signature.asc
Description: Digital signature


Re: Piotrek's new preferred Python helper tool - (unfair) decision

2009-03-02 Thread Ben Finney
Ondrej Certik ond...@certik.cz writes:

 why is the decision unfair?

You'll have to ask Piotr (the one making the decision, and also the
one who chose that subject field), not me.

-- 
 \  “Pity the meek, for they shall inherit the earth.” —Donald |
  `\  Robert Perry Marquis |
_o__)  |
Ben Finney


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Piotrek's new preferred Python helper tool - (unfair) decision

2009-03-02 Thread Steve Langasek
On Tue, Mar 03, 2009 at 12:39:48AM +0100, Cyril Brulebois wrote:
 Piotr Ożarowski pi...@debian.org (03/03/2009):
  [Cyril Brulebois, 2009-03-03]
   Piotr Ożarowski pi...@debian.org (02/03/2009):
[Ben Finney, 2009-03-02]
 Why does this not happen automatically when the package is upgraded
 from a version that uses python-central?

how can dh_pysupport know that x versions ago this package was using
python-central?

   I suggest you check “6.6 Details of unpack phase of installation or
   upgrade” in the Policy.

   (I'm not sure whether -central is so buggy that it can't handle removal
   properly, but I guess it could be.)

  see #479852

 OK. I guess it's the answer Ben was looking for.

 And well, that might make pretty obvious to anyone not convinced yet
 that -central can't really be considered a “chosen one”, no?

So how does python-support address this bug without instead making
python-based programs excessively brittle during upgrades?

There are tradeoffs here.

-- 
Steve Langasek   Give me a lever long enough and a Free OS
Debian Developer   to set it on, and I can move the world.
Ubuntu Developerhttp://www.debian.org/
slanga...@ubuntu.com vor...@debian.org


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Piotrek's new preferred Python helper tool - (unfair) decision

2009-03-02 Thread Ben Finney
Cyril Brulebois k...@debian.org writes:

 Piotr Ożarowski pi...@debian.org (03/03/2009):
  [Cyril Brulebois, 2009-03-03]
   Piotr Ożarowski pi...@debian.org (02/03/2009):
[Ben Finney, 2009-03-02]
 Why does [removal of links created by ‘python-central’] not
 happen automatically when the package is upgraded from a
 version that uses python-central?
   
   (I'm not sure whether -central is so buggy that it can't handle
   removal properly, but I guess it could be.)
  
  see #479852 [URL:http://bugs.debian.org/479852]
 
 OK. I guess it's the answer Ben was looking for.

Yes, that answers my question. For future reference: The above bug
report explains that ‘python-central’ causes packages to create
symlinks during ‘postinst’, but not remove them during ‘prerm’.

-- 
 \  “It was half way to Rivendell when the drugs began to take |
  `\hold” —Hunter S. Tolkien, _Fear and Loathing in Barad-Dûr_ |
_o__)  |
Ben Finney


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org