this will work, the problem is that the old u-a would fail too it was just 
silent, the new u-a is more robust with errors, thus that script was always 
broken, the link would shave been left dangling.
---
TS
http://www.southofheaven.org/
Life begins and ends with chaos, live between the chaos!

On 2013-09-17, at 8:07 AM, Hanspeter Niederstrasser <f...@snaggledworks.com> 
wrote:

> Charles,
> 
> The PreRmScript from docutils-py has problems with the new dpkg that is 
> being tested.  The update-alternatives during PreRmScript fails to 
> correctly uninstall and makes it impossible to remove the package.  The 
> actual error is this:
> 
> Removing docutils-py27 ...
> update-alternatives: error: no alternatives for rst2html-py
> 
> The following patch (with a Revision bump) fixes this so that it works 
> with the new dpkg.  I can commit to 10.7, but don't have a way to test 
> to make sure that it works with the old/current dpkg (it should).
> 
> ---- 8< ---- 8< ---- 8< ---- 8< ---- 8< ----
> @@ -48,19 +48,19 @@
>      #                              link      name    path (source) 
>                priority
>      update-alternatives --install %p/bin/$i    $i 
> %p/bin/$i-%type_raw[python].py %type_pkg[python] \
>                          --slave   %p/bin/$i.py $i-py 
> %p/bin/$i-%type_raw[python].py
>    done
>  <<
> 
>  PreRmScript: <<
>    if [ $1 != "upgrade" ]; then
> -    for i in rst2html rst2latex rst2man rst2odt rst2odt_prepstyles 
> rst2pseudoxml rst2s5 rst2xetex rst2xml rstpep2ht; do
> -      update-alternatives --remove-all $i
> -      update-alternatives --remove-all $i-py
> +    for i in rst2html rst2latex rst2man rst2odt rst2odt_prepstyles 
> rst2pseudoxml rst2s5 rst2xetex rst2xml rstpep2html; do
> +      update-alternatives --remove $i %p/bin/$i-%type_raw[python].py
> +      update-alternatives --remove $i-py %p/bin/$i-%type_raw[python].py
>      done
>    fi
>  <<
> 
>  DocFiles: README.html BUGS.html COPYING.html HISTORY.html FAQ.html 
> THANKS.html
> 
>  Description: Python-approved WYSIWYG text markup toolkit
>  DescDetail: <<
> ---- 8< ---- 8< ---- 8< ---- 8< ---- 8< ----
> 
> Hanspeter
> 
> ------------------------------------------------------------------------------
> LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
> 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
> 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
> Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
> http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
> _______________________________________________
> Fink-devel mailing list
> Fink-devel@lists.sourceforge.net
> List archive:
> http://news.gmane.org/gmane.os.apple.fink.devel
> Subscription management:
> https://lists.sourceforge.net/lists/listinfo/fink-devel


------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to