Colin Watson
52a7d28eac
Handle asprintf failures consistently.
10 years ago
Joey Hess
ba700576f1
Support escaping of menu items containing commas. Closes : #613623
Tested: main-menu still works in English; can now select
network-console entry in Slovenian).
Not Tested: Submenu displayed when multiple virtual packages provide
a menu item. (Unsure where this is really used.)
12 years ago
Joey Hess
fe085d4f10
convert menu_entry to return the string rather than its size
12 years ago
Joey Hess
ec26cb35f5
avoid unnecessary parameter
12 years ago
Joey Hess
ed335f2fb5
adjust comment to fit reality
12 years ago
Joey Hess
7cbf064a43
combine two uses of a constant
12 years ago
Colin Watson
df61de5545
Use debconf_x_save (requires libdebconfclient0-dev 0.106) instead of
writing out code by hand.
r65002
13 years ago
Petter Reinholdtsen
a21dff1867
Include menu item number if disabled debug message.
r64041
13 years ago
Frans Pop
fbeb3430e8
Don't mark menu items that are not installable as "seen"
This will allow auto-install to be simplified as the ai-chooser udebs will
no longer be needed: any delayed menu items will get run automagically when
their isinstallable script no longer fails (unless they had already been
"seen" before they were disabled).
r62741
13 years ago
Frans Pop
7da163d9f4
Remove check for menu item 99900; no packages use it anymore.
r60496
14 years ago
Otavio Salvador
16c7bd617a
Add support to exit the installer using di-utils-exit-installer.
r59203
14 years ago
Colin Watson
0aa7bbd6e8
typ
r59024
14 years ago
Frans Pop
fa77a7dba0
Minor style improvements in debconf_to_pri(); thanks to Jérémy Bobbio
r57131
15 years ago
Frans Pop
5cbeff30b6
Dynamically adjust priority at which menu is displayed
Instead of lowering the debconf priority after the user backs up from
a question, match the priority at which the menu is displayed to the
current debconf priority.
This means that change debconf priority will now in most cases display
the actual current debconf priority and in general behavior becomes
more consistent.
r56986
15 years ago
Frans Pop
aee63d2880
Return to default priority in one step after an error has been resolved
It does not really make sense to raise the debconf priority one level
at a time when a component is executed successfully after repeated errors.
Instead restore the original debconf priority in one go.
r56985
15 years ago
Frans Pop
054b324286
Factor out function to convert debconf priorities
r56984
15 years ago
Frans Pop
d6f0b627d9
Mark components with a menu item number of 99999 or 99900 as uninstallable
This can be used for components that should be selectable by users in anna,
but don't have functionality that can be run from the main menu. The change
avoids the need to add a dummy isinstallble script for such components.
Examples are openssh-client and fdisk.
The use of 99900 is deprecated, but needed as components currently use that
number. It can be removed once they have been changed to use 99999.
r52222
15 years ago
Colin Watson
16b433ac38
typo
r50242
16 years ago
Joey Hess
e33c8dc98a
* Support DEB_BUILD_OPTIONS=nostrip. Closes : #437554
* Add a (lame) guard against infinite recursion in di_config_package.
Closes : #437323
r49534
16 years ago
Joey Hess
4d47eabaf9
* Fix test for new menu items that come before the last successful item.
It's ok to jump up the menu to run such new items. Closes : #444462
* Fix NEVERDEFAULT test. Closes : #277743
r49533
16 years ago
Jérémy Bobbio
939edbcc9a
* Do not raise the priority when cdebconf-priority succeed.
(Closes : #331679 )
r49468
16 years ago
Jérémy Bobbio
87ca486828
* Fix a memory leak in show_main_menu(). ( Closes : #438121 )
Thanks to Masami Ichikawa for the patch!
r49045
16 years ago
Colin Watson
9b7a736780
* Fix a few memory leaks in corner cases.
r47707
16 years ago
Joey Hess
92bdf0e3fc
actually, let's set it to the title of the failing menu item
r46937
16 years ago
Joey Hess
f2d434be62
* Reset debconf title when displaying a failure message, otherwise the title
could be left set to a previous value.
r46936
16 years ago
Joey Hess
4704782601
useful debug, commented out
r46258
16 years ago
Colin Watson
7b87dce1fd
don't restore previous default priority when selecting a neverdefault item
r46103
16 years ago
Colin Watson
2ebb7fd155
* Restore previous default priority when selecting a menu item immediately
after backing up to the main menu.
r46016
16 years ago
Frans Pop
ec712683e5
Post-Etch development merged in from Colin's people directory:
- Avoid suppressing menu items that have never been seen before just
because they have a lower menu item number than the last successful item
r45895
16 years ago
Frans Pop
86c15333d6
Free menu variable after use; thanks to Masami Ichikawa
r43905
17 years ago
Frans Pop
b4c1ddb282
Make cdebconf honour currently set debconf/language
r41306
17 years ago
Joey Hess
690e20d59d
* Comment out some debug items, switch another log item to info.
* Don't log about priority changing the first time through.
r37298
17 years ago
Frans Pop
8eecc41a71
Revert controversial patch from Silvain so we can release. Patch will be submitted to BTS for further discussion.
r34425
18 years ago
sylvain ferriol
032603271b
* Add pre and post scripts execution for a menu item. It is useful
if you want to interact in the installation process without creating
a specific udeb package for that.
r32805
18 years ago
sylvain ferriol
7867c5921b
static modify_debconf_priority declaration forgotten
r32497
18 years ago
Joey Hess
fde2d6b627
* If a default menu item cannot be determined, drop priority to avoid
looping.
r32223
18 years ago
Joey Hess
d2de21e1e6
* Avoid trailing commas at end of missing-provide choices list since
cdebconf is picky. Closes : #327393
r31484
18 years ago
Colin Watson
684d05ab2a
* Rip out all of the code to manually fetch localised templates; cdebconf
has known how to deal with this itself since 2002/2003 or so.
r30710
18 years ago
Colin Watson
49a57b2ec0
Propagate EXIT_BACKUP from recursive calls to di_config_package() (Ubuntu
bug #8889 ).
r27324
18 years ago
Colin Watson
e4e756b9e5
Add support for executables in /lib/main-menu.d/, which get run at main-menu
startup. This allows packages to run scripts that need to share main-menu's
debconf frontend but that don't merit a menu item, such as setting an info
message.
r26830
18 years ago
Petter Reinholdtsen
fc2de4a610
* Petter Reinholdtsen
- Improve the handling of errors when debconf priority limit is
set to critical. Patch from Colin Watson. (Closes: 268425)
r25273
19 years ago
Joey Hess
508e070391
missed these
r20129
19 years ago
Joey Hess
e77c709b93
* Joey Hess
- Remove the EXIT_QUIT and EXIT_RESTART return code handling
as that is no longer used. Closes : #258877
r20127
19 years ago
Bastian Blank
a64555578b
Check for availability of debian-installer/language.
r18490
19 years ago
Colin Watson
fca17cb15a
Avoid empty entries in generated menu choices list; main-menu wrongly
assumed that the last package in the list is always installable.
r18254
19 years ago
Joey Hess
00ed56a97f
* Joey Hess
- Remove some dead code Bruce Perens noticed.
r18252
19 years ago
Bastian Blank
8ce4cea273
- Use X_SAVE.
- Fix backup.
r17707
19 years ago
Bastian Blank
d5310d68f7
- Cleanup.
- Exit cleanly if asked to do so. Needs cdebconf 0.68.
r17636
19 years ago
Matt Kraai
cc3daa279c
Do not skip a package unless all of the virtual packages that it
provides are provided by installed packages (closes : #247929 ).
r15106
19 years ago
Joey Hess
ddee14b1eb
add debugging code, commented out
r14938
19 years ago