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

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

    <bug>
          <bug_id>36897</bug_id>
          
          <creation_ts>2019-06-14 01:37:51 +0300</creation_ts>
          <short_desc>luarocks.filetrigger failed</short_desc>
          <delta_ts>2019-06-14 21:26:58 +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>lua5.3-luarocks</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vladimir D. Seleznev">vseleznv</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>182404</commentid>
    <comment_count>0</comment_count>
    <who name="Vladimir D. Seleznev">vseleznv</who>
    <bug_when>2019-06-14 01:37:51 +0300</bug_when>
    <thetext>apt-get install ...
...
/usr/lib/rpm/luarocks.filetrigger failed
warning: posttrans filetriggers scriptlet failed, exit status 1
Done.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>182405</commentid>
    <comment_count>1</comment_count>
    <who name="ildar">ildar</who>
    <bug_when>2019-06-14 07:17:48 +0300</bug_when>
    <thetext>в хэшере не воспроизводится.
можете запустить от рута:
&gt; echo /usr/lib/luarocks/rocks | /usr/lib/rpm/luarocks.filetrigger

если повторится, ещё раз с sh -x ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>182408</commentid>
    <comment_count>2</comment_count>
    <who name="Vladimir D. Seleznev">vseleznv</who>
    <bug_when>2019-06-14 11:19:27 +0300</bug_when>
    <thetext>(In reply to comment #1)
&gt; в хэшере не воспроизводится.
&gt; можете запустить от рута:
&gt; &gt; echo /usr/lib/luarocks/rocks | /usr/lib/rpm/luarocks.filetrigger
&gt; 
&gt; если повторится, ещё раз с sh -x ?

Running /usr/lib/rpm/posttrans-filetriggers
+ grep -qs -e &apos;^/usr/lib/luarocks/rocks&apos;
/usr/lib/rpm/luarocks.filetrigger failed
warning: posttrans filetriggers scriptlet failed, exit status 1

Предлагаю заменить на условие:
-grep -qs -e &apos;^/usr/lib/luarocks/rocks&apos; &amp;&amp; \
+if grep -qs -e &apos;^/usr/lib/luarocks/rocks&apos;; then
...
+fi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>182434</commentid>
    <comment_count>3</comment_count>
    <who name="ildar">ildar</who>
    <bug_when>2019-06-14 18:26:37 +0300</bug_when>
    <thetext>ага, нашёл, как воспроизвести.
Это, видимо, подарочек от bash4. Но я не пойму, как работают многие другие *.filetrigger с аналогичной конструкцией.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>182438</commentid>
    <comment_count>4</comment_count>
    <who name="ildar">ildar</who>
    <bug_when>2019-06-14 21:12:49 +0300</bug_when>
    <thetext>спасибо, разобрался.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>182439</commentid>
    <comment_count>5</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2019-06-14 21:26:58 +0300</bug_when>
    <thetext>lua5.3-luarocks-2.4.2-alt7 -&gt; sisyphus:

Sat Jun 15 2019 Ildar Mulyukov &lt;ildar@altlinux.ru&gt; 2.4.2-alt7
- improved luarocks.filetrigger (closes: 36897)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>