<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>13944</bug_id>
          
          <creation_ts>2008-01-09 06:56:03 +0300</creation_ts>
          <short_desc>alternatives-update не прав</short_desc>
          <delta_ts>2017-05-18 13:37:32 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>alternatives</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="ildar">ildar</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>at</cc>
    
    <cc>glebfm</cc>
    
    <cc>lav</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>60694</commentid>
    <comment_count>0</comment_count>
    <who name="ildar">ildar</who>
    <bug_when>2008-01-09 06:56:03 +0300</bug_when>
    <thetext>строка 150 файла alternatives-update содержит fgrep -qs &quot; $name   &quot;
/etc/alternatives/auto/*

\t$name\t здесь конфликтует с тем, что содержится в пакете links2. \t$name\t мне
кажется слишком строгим и напрашивается на исправление.

Steps to Reproduce:
1.alternatives-manual /usr/bin/links /usr/bin/links2
2.alternatives-update
3. ls -l /usr/bin/links
Actual Results:  
elinks

Expected Results:  
links2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163738</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2017-05-18 13:37:32 +0300</bug_when>
    <thetext># alternatives-manual /usr/bin/links /usr/bin/links2
alternatives-manual: /usr/bin/links:/usr/bin/links2 - invalid alternative

# apt-get install links2

# alternatives-manual /usr/bin/links /usr/bin/elinks
alternatives-manual: don&apos;t forget to run alternatives-update to apply changes

# alternatives-update

Всё меняется как ожидается:

# epmqf links
Note: links is placed as /usr/bin/links
 # rpm -qf /usr/bin/links
warning: file /usr/bin/links is not owned by any package
Note: /usr/bin/links is link to /usr/bin/links-2.14
 # rpm -qf /usr/bin/links-2.14
links2-2.14-alt1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>