please provide meaningful exit codes

Bug #132276 reported by Alexander Sack
Affects Status Importance Assigned to Milestone
apturl (Ubuntu)
Fix Released
Michael Vogt

Bug Description

Binary package hint: apturl

callers of apturl should be able to recognize whether:

 1. installation succeeded
 2. installation cancelled
 3. Installation failed

Nice to have:

 4. Installation failed due to missing permissions (not in admin group)

Please introduce special exit codes for these cases.

Related branches

Revision history for this message
Michael Vogt (mvo) wrote :

This is unfortunately not trivial as gksu (used to call synaptic) does not propergate the exit status. In any case, if something goes wrong there will be a clear error message from synaptic.

Changed in apturl:
assignee: nobody → mvo
importance: Undecided → High
status: New → Confirmed
importance: High → Medium
Michael Vogt (mvo)
Changed in apturl:
status: Confirmed → Fix Committed
Revision history for this message
Michael Vogt (mvo) wrote :

It returns the following exit codes now:

 RESULT_ERROR) = range(3)

(from 0-2)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apturl - 0.2.0ubuntu1

apturl (0.2.0ubuntu1) hardy; urgency=low

  * apturl:
    - run gtk.init_check() (LP: #197062)
    - make the description better (split into summary/long descr)
    - fix filename creation (LP: #138315)
    - typo (LP: #200504)
    - return proper exit codes on success/cancel/failure (LP: #132276)
    - only run if the apt cache is not broken
  * data/
    - default button is 'no'
    - make it resizable
  * po/
    - add missing files (LP: #173846)
  * date/,
    - register apturl in gnome as a protocol

 -- Michael Vogt <email address hidden> Tue, 11 Mar 2008 10:15:57 +0100

Changed in apturl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.