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

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

    <bug>
          <bug_id>16141</bug_id>
          
          <creation_ts>2008-06-23 16:27:52 +0400</creation_ts>
          <short_desc>&quot;any2djvu -q&quot; returns wrong status code</short_desc>
          <delta_ts>2022-04-02 11:19:23 +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>djvu-utils</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>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Evgeny Sinelnikov">sin</assigned_to>
          <cc>grenka</cc>
    
    <cc>grenka</cc>
    
    <cc>lakostis</cc>
    
    <cc>sin</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>73046</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2008-06-23 16:27:52 +0400</bug_when>
    <thetext>$ rpm -qf &quot;$(which any2djvu)&quot;
djvu-utils-3.5.17-alt2

Although everything is right, it returns non-OK code (1) (and this is not good for automatic use of the tool, e.g., in Makefiles):

$ any2djvu -q HNG_TITLE.pdf; echo $?
Пнд Июн 23 12:23:40 UTC 2008 Processing HNG_TITLE ...
1
$ tail HNG_TITLE-any2djvu.log 
&lt;b&gt;Original file 79660 bytes; DjVu file 6570 bytes&lt;/b&gt;
&lt;hr size=2 noshade&gt;&lt;b&gt;All done! Here is your new DjVu document: &lt;a href=djvu/080623/89.222.150.36/29302.080623082332.djvu&gt;djvu/080623/89.222.150.36/29302.080623082332.djvu&lt;/a&gt;&lt;/b&gt;&lt;hr size=2 noshade&gt;
&lt;br clear=all&gt;&lt;object classid=&quot;clsid:0e8d0700-75df-11d3-8b4a-0008c7450c4a&quot; width=100% height=100%&gt; &lt;param name=&quot;imageURL&quot; value=&quot;djvu/080623/89.222.150.36/29302.080623082332.djvu&quot; align=&quot;center&quot; width=&quot;100%&quot; height=&quot;100%&quot; hspace=&quot;0&quot; vspace=&quot;0&quot;&gt; &lt;embed type=&quot;image/x.djvu&quot; src=&quot;djvu/080623/89.222.150.36/29302.080623082332.djvu&quot; align=&quot;center&quot; width=&quot;100%&quot; height=&quot;100%&quot; hspace=&quot;0&quot; vspace=&quot;0&quot;&gt; &lt;/embed&gt; &lt;/object&gt;
&lt;/blockquote&gt;

&lt;BR&gt;
&lt;p&gt;&lt;a href=&quot;index.html&quot;&gt;&lt;b&gt;&lt;i&gt;Any2DjVu Server&lt;/i&gt;&lt;/b&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/CENTER&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;
$ ls
HNG_TITLE-any2djvu.log  HNG_TITLE.djvu  HNG_TITLE.pdf
$</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73047</commentid>
    <comment_count>1</comment_count>
      <attachid>2681</attachid>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2008-06-23 16:47:49 +0400</bug_when>
    <thetext>Created attachment 2681
any2djvu-q-status.diff

Fixes the wrong exit code of &quot;any2djvu -q&quot; (by using real conditionals).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90706</commentid>
    <comment_count>2</comment_count>
    <who name="Evgeny Sinelnikov">sin</who>
    <bug_when>2009-05-04 21:14:07 +0400</bug_when>
    <thetext>А в новой версии этот патч актуален? Проблема осталась или решилась?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>170278</commentid>
    <comment_count>3</comment_count>
    <who name="Grigory Ustinov">grenka</who>
    <bug_when>2018-04-05 18:00:44 +0300</bug_when>
    <thetext>В версии 3.5.25.3-alt1 бага всё ещё присутствует!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>209060</commentid>
    <comment_count>4</comment_count>
    <who name="Konstantin A Lepikhov (L.A. Kostis)">lakostis</who>
    <bug_when>2022-04-01 10:22:26 +0300</bug_when>
    <thetext>(In reply to Grigory Ustinov from comment #3)
&gt; В версии 3.5.25.3-alt1 бага всё ещё присутствует!

Что насчет текущей версии в сизифе?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>209064</commentid>
    <comment_count>5</comment_count>
    <who name="Grigory Ustinov">grenka</who>
    <bug_when>2022-04-01 11:24:31 +0300</bug_when>
    <thetext>Да, присутствует.

[grenka@localhost ~]$ rpm -q djvu-utils
djvu-utils-3.5.28-alt1.x86_64
[grenka@localhost ~]$ wget -q http://www.triumphtiger.ru/manuals/Triumph_Tiger_955i_User_manual.pdf
[grenka@localhost ~]$ any2djvu -q Triumph_Tiger_955i_User_manual.pdf; echo $?
WARNING!

any2djvu uses an external server which is willing to perform the
conversion and requires the document transfer over to that server.
There is a security issue in operating on documents not intended for
widespread distribution, which could be partially although not
completely ameliorated by using a secure web connection.

Do you acknowledge and allow the transmission of the document?
(Type &apos;yes&apos; to acknowledge. You can define non-empty environment
 variable DJVU_ONLINE_ACK to avoid seeing this dialog, or use -a
 command line parameter to any2djvu).
[yes/no]:yes
Fri Apr 1 08:23:22 AM UTC 2022 Processing Triumph_Tiger_955i_User_manual ...
1
[grenka@localhost ~]$</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>209081</commentid>
    <comment_count>6</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2022-04-02 11:19:23 +0300</bug_when>
    <thetext>djvu-3.5.28-alt2 -&gt; sisyphus:

 Fri Apr 01 2022 L.A. Kostis &lt;lakostis@altlinux.ru&gt; 3.5.28-alt2
 - any2djvu: fix exit code (ALT#16141).
 - apply fixes from git:
   + Reviewed Fedora patches and adopted some of them.
   + DjVuToPS fix for images without foreground.
   + fix for incorrect resolution in tiff tags.
   + fix for upstream bug #302.
   + Improved merge_and_split_ccs does not join large cc pieces.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>2681</attachid>
            <date>2008-06-23 16:47:49 +0400</date>
            <delta_ts>2008-06-23 16:47:49 +0400</delta_ts>
            <desc>any2djvu-q-status.diff</desc>
            <filename>any2djvu-q-status.diff</filename>
            <type>text/plain</type>
            <size>1111</size>
            <attacher name="Ivan Zakharyaschev">imz</attacher>
            
              <data encoding="base64">KioqIGFueTJkanZ1CTIwMDgvMDYvMjMgMTI6Mjk6MTYJMS4xCi0tLSBhbnkyZGp2dQkyMDA4LzA2
LzIzIDEyOjM0OjQ5CTEuMgoqKioqKioqKioqKioqKioKKioqIDE0NiwxNTIgKioqKgogIGZpCiAg
CiAgbG9nPWBkYXRlIC11YCI6ICJgd2hvYW1pYCdAJ2Bob3N0bmFtZWAiLCBwaWQgJCQ6ICQwIChj
d2QgImBwd2RgIikiCiEgWyAteiAkc2lsZW50IF0gICYmIGVjaG8gJy8tLSBTdGFydGVkJyAkbG9n
ID4mMgogIAogIGluPSIkMSIKICBzaGlmdAotLS0gMTQ2LDE1MiAtLS0tCiAgZmkKICAKICBsb2c9
YGRhdGUgLXVgIjogImB3aG9hbWlgJ0AnYGhvc3RuYW1lYCIsIHBpZCAkJDogJDAgKGN3ZCAiYHB3
ZGAiKSIKISBpZiBbIC16ICRzaWxlbnQgXTsgdGhlbiBlY2hvICcvLS0gU3RhcnRlZCcgJGxvZyA+
JjI7IGZpCiAgCiAgaW49IiQxIgogIHNoaWZ0CioqKioqKioqKioqKioqKgoqKiogMjAyLDIwOSAq
KioqCiAgICAgIGZpCiAgICAgIHdnZXQgJHdnZXRvcHRzIC1PICRiLmRqdnUgIi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