Bug 19853 - univention-install-config-registry wirft traces bei --help oder ohne parameter
univention-install-config-registry wirft traces bei --help oder ohne parameter
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UCR
UCS 2.4
Other Linux
: P5 enhancement (vote)
: UCS 3.0-2
Assigned To: Lukas Walter
Florian Best
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-09-06 09:45 CEST by Roman Asendorf
Modified: 2012-07-20 15:24 CEST (History)
4 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:
schwardt: Patch_Available+


Attachments
Man-Page (2.20 KB, text/plain)
2010-09-06 10:26 CEST, Philipp Hahn
Details
Erster Patch python OptionParser und os.path.exists check (5.48 KB, patch)
2011-06-22 14:44 CEST, Martin Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Asendorf univentionstaff 2010-09-06 09:45:12 CEST
Hier sollte es analog zu unvivention-install eine Info zur Aufrufsyntax geben, sowie einen kleinen Info-Text, was das Tool eigentlich macht.

root@system ~ # univention-install-config-registry
Traceback (most recent call last):
  File "/usr/bin/univention-install-config-registry", line 84, in ?
    for package in getPackages():
  File "/usr/bin/univention-install-config-registry", line 44, in getPackages
    fp = open('debian/control')
IOError: [Errno 2] No such file or directory: 'debian/control'

root@system ~ # univention-install-config-registry --help
Traceback (most recent call last):
  File "/usr/bin/univention-install-config-registry", line 84, in ?
    for package in getPackages():
  File "/usr/bin/univention-install-config-registry", line 44, in getPackages
    fp = open('debian/control')
IOError: [Errno 2] No such file or directory: 'debian/control'
Comment 1 Philipp Hahn univentionstaff 2010-09-06 10:26:43 CEST
Created attachment 2667 [details]
Man-Page

man -l ~phahn/src/man/man1/univention-install-config-registry.1
Comment 2 Martin Müller 2011-06-22 14:44:02 CEST
Created attachment 3358 [details]
Erster Patch python OptionParser und os.path.exists check
Comment 3 Lukas Walter univentionstaff 2012-06-11 14:48:23 CEST
Wurde eingebaut.
Comment 4 Lukas Walter univentionstaff 2012-06-15 14:49:33 CEST
(In reply to comment #3)
> Wurde eingebaut.

Paket gebaut, Changelogeintrag vorhanden.

univention-config-registry (7.0.32-2) unstable; urgency=low

  * display info message when "--help" or "-h" is passed to an ucr
    installation script (Bug #19853)
Comment 5 Felix Botner univentionstaff 2012-06-20 14:40:51 CEST
Die usage Meldung vielleicht besser so:

-> univention-install-config-registry -h
Usage: univention-install-config-registry
install UCR template files into package build directories

univention-install-config-registry is  a  debhelper  like  programm  that  is
responsible  for  installing  template files using univention config registry
(UCR) variables into etc/univention/templates/ in the  package  build  direc‐
tory.  The  templates references by debian/PACKAGE.univention-config-registry
are installed.
Comment 6 Florian Best univentionstaff 2012-06-20 15:36:50 CEST
# univention-install-config-registry
[Errno 2] No such file or directory: 'debian/control'
Comment 7 Lukas Walter univentionstaff 2012-06-22 11:59:45 CEST
> Die usage Meldung vielleicht besser so:
> 
> -> univention-install-config-registry -h
> Usage: univention-install-config-registry
> install UCR template files into package build directories
> 
> univention-install-config-registry is  a  debhelper  like  programm  that  is
> responsible  for  installing  template files using univention config registry
> (UCR) variables into etc/univention/templates/ in the  package  build  direc‐
> tory.  The  templates references by debian/PACKAGE.univention-config-registry
> are installed.

Usage Meldungen wurden entsprechend angepasst.



univention-config-registry (7.0.33-1) unstable; urgency=low

  * modified format of the install script usage messages (Bug #19853)
Comment 8 Florian Best univentionstaff 2012-06-22 12:19:11 CEST
(In reply to comment #6)
> # univention-install-config-registry
> [Errno 2] No such file or directory: 'debian/control'
Das wurde nicht umgesetzt. Man hätte überprüfen können, ob die Datei existiert (wie im patch) und eine Fehlernachricht oder die usage ausgeben können.

(In reply to comment #7)
> Usage Meldungen wurden entsprechend angepasst.
Ok

Changelogeintrag kann noch verbessert werden: \ucsName benutzen
Comment 9 Lukas Walter univentionstaff 2012-06-27 17:07:15 CEST
> Changelogeintrag kann noch verbessert werden: \ucsName benutzen

Angepasst.
Comment 10 Florian Best univentionstaff 2012-07-02 08:24:44 CEST
(In reply to comment #9)
> > Changelogeintrag kann noch verbessert werden: \ucsName benutzen
> 
> Angepasst.
Ja
Comment 11 Stefan Gohmann univentionstaff 2012-07-20 15:24:30 CEST
UCS 3.0-2 has been released: 
  http://forum.univention.de/viewtopic.php?f=54&t=1905

If this error occurs again, please use "Clone This Bug".