Devin Teske
ffd2e04e32
Trim the trailing `/' from the ftp_dir when validating that the directory
...
exists on the FTP server. This now means that when you specify a full-path
to the repository on the FTP server that it doesn't matter whether you have
a trailing `/' or not.
2013-06-22 03:44:49 +00:00
Devin Teske
2c2a50fde6
Take advantage of the fact that f_getvar evaluates the $var_to_get parameter
...
within braces, allowing all manner of parameter expansions (properly quoted
or escaped, of course).
2013-06-22 02:57:52 +00:00
Devin Teske
4ef0123eb7
Fix a regression introduced by r251967, resulting in:
...
/usr/libexec/bsdconfig/110.mouse/mouse: 134:
Syntax error: ";;" unexpected (expecting "fi")
2013-06-22 02:51:22 +00:00
Devin Teske
a0d3f1e5bc
Fix a regression introduced by r251967, resulting in:
...
/usr/libexec/bsdconfig/080.console/console: 136:
Syntax error: ";;" unexpected (expecting "fi")
2013-06-22 02:47:54 +00:00
Devin Teske
03104918fe
Add missing local declaration.
2013-06-21 23:21:16 +00:00
Devin Teske
bb470eb314
Remove unused library include.
2013-06-21 23:18:29 +00:00
Devin Teske
1de60ff0f4
Alphabetize library includes.
2013-06-21 23:13:55 +00:00
Devin Teske
66badff968
Style.
2013-06-21 22:53:51 +00:00
Devin Teske
5b3821c01c
Typo and grammar fixes to comments.
2013-06-21 22:47:31 +00:00
Devin Teske
403c4b46e0
Fix a code typo in a case-statement match expression that prevented IPv6
...
URLs with port designator from working properly (e.g. http://[::1]:80/ ).
2013-06-20 07:29:42 +00:00
Devin Teske
e269422b91
When the fall-back of a case-statement is the last thing executed in a
...
while-loop _and_ all prior matches in the same case-statement either break
or continue, we can safely break the fall-back out of the case-statement.
This should improve readability and allow for longer-lines by reducing the
level of indentation by-one for the fall-back case.
(a continuation of SVN r252019)
2013-06-20 05:51:44 +00:00
Devin Teske
fd3d4fec40
When the fall-back of a case-statement is the last thing executed in a
...
while-loop _and_ all prior matches in the same case-statement either break
or continue, we can safely break the fall-back out of the case-statement.
This should improve readability and allow for longer-lines by reducing the
level of indentation by-one for the fall-back case.
2013-06-20 05:48:08 +00:00
Devin Teske
a0b423e1f7
Remove pedanticism and consolidate some logic.
2013-06-20 05:42:21 +00:00
Devin Teske
3b1f7d9e5d
Add debugging (for a case that shouldn't arise, but makes it more obvious
...
if a menu addition is made in one plce but forgotten in another).
2013-06-20 05:40:11 +00:00
Devin Teske
1a13494575
Style -- no ;; needed on fallback clause within case-statement.
2013-06-19 18:44:55 +00:00
Devin Teske
ba44a0d54a
Whitespace.
2013-06-19 18:32:18 +00:00
Devin Teske
f4a3220ca1
Whitespace and comments.
2013-06-19 18:13:58 +00:00
Devin Teske
3daac03bb7
Alphabetize reserved-word (resword) registration.
2013-06-19 17:14:59 +00:00
Devin Teske
fa8b43c808
Alphabetize includes.
2013-06-19 17:13:16 +00:00
Devin Teske
e52257af13
Remove extra whitespace lines.
2013-06-19 00:24:08 +00:00
Devin Teske
9cd8fcc642
Change a humongous if-statement at the end of f_install_zoneinfo_file() into
...
an early return, allowing a huge chunk of code to be indented one-level less
2013-06-19 00:13:54 +00:00
Devin Teske
b17d3670ee
Take advantage of newly updated f_dialog_{yesno,noyes}() functions from
...
SVN r251977 (adding an $hline parameter).
2013-06-19 00:09:21 +00:00
Devin Teske
b4dc08d45d
When I first wrote the timezone module, it was in sysutils/tzdialog and it
...
pre-dates bsdconfig. Update the code to take advantage of f_dialog_msgbox().
2013-06-19 00:08:29 +00:00
Devin Teske
68d5c9afb9
Change the f_dialog_{yesno,noyes}() function-arguments in `dialog.subr' to
...
accomodate an $hline value for overriding the default. This change does
not effect any current modules as it turns out that not one single usage of
either f_dialog_yesno() or f_dialog_noyes() relied on accepting more than a
first argument (read: all occurrences quoted the first parameter; so $* was
never depended upon).
This will allow some custom invocations of --yesno and --noyes to roll over
to these functions (for example, in `timezone/timezone').
2013-06-18 23:48:05 +00:00
Devin Teske
aaeba1c1ea
Perform some code consolidation and replace nested case-statements with
...
more logical if-else statements for each menu selection.
2013-06-18 23:18:32 +00:00
Devin Teske
fcd71b75c9
Fix a regression introduced by r251967, resulting in:
...
/usr/libexec/bsdconfig/140.startup/startup: 130:
Syntax error: ";;" unexpected (expecting "fi")
2013-06-18 23:14:45 +00:00
Devin Teske
229efb37dc
Whitespace.
2013-06-18 23:11:36 +00:00
Devin Teske
df750a6ced
Perform some code consolidation and add some additional error
...
checking/reporting. (similar to SVN revisions 251919 and 251928)
2013-06-18 21:44:35 +00:00
Devin Teske
7cdf48fc2c
Comments.
2013-06-18 21:35:38 +00:00
Devin Teske
0071dbd1cd
Comments and whitespace.
2013-06-18 09:54:09 +00:00
Devin Teske
997cf00a16
Comments.
2013-06-18 09:45:10 +00:00
Devin Teske
d7d2d8039a
Perform some code consolidation and add some additional error
...
checking/reporting. (similar to SVN revision 251919)
2013-06-18 09:43:10 +00:00
Devin Teske
dee8ed370d
Whitespace and comments.
2013-06-18 09:41:34 +00:00
Devin Teske
23fb944196
Perform some code consolidation and add some additional error
...
checking/reporting. (similar to SVN revisions 251905 and 251915)
2013-06-18 09:28:49 +00:00
Devin Teske
d6abc28bf4
Remove unnecessary loops, perform some code consolidation, and add some
...
additional error checking/reporting. (same thing going on here as SVN
r251905 -- just this time for the mouse module instead of console)
2013-06-18 09:19:59 +00:00
Devin Teske
f1edae9451
Whitespace.
2013-06-18 09:05:08 +00:00
Devin Teske
131502c303
Use newly enhanced f_dialog_msgbox() from SVN r251912.
2013-06-18 08:59:47 +00:00
Devin Teske
5a97d36067
Change the f_dialog_msgbox() arguments in `dialog.subr' to accomodate an
...
$hline argument for setting the --hline parameter value. This change does
not effect any current modules as it turns out that not one single usage of
f_dialog_msgbox() relied on accepting more than a first argument (read: all
occurrences quoted the first parameter; so $* was never depended upon).
This will allow some custom invocations of --msgbox to roll over to this
function (for example, in `mouse/disable').
2013-06-18 08:54:02 +00:00
Devin Teske
55bce0c120
Comments.
2013-06-18 08:40:16 +00:00
Devin Teske
c9e7fcd366
Comments.
2013-06-18 08:35:44 +00:00
Devin Teske
274282c82b
Fix a typo in a comment.
2013-06-18 08:30:31 +00:00
Devin Teske
97e0eecaf3
Switch bsdconfig Disk Management' from sade(8) to
bsdinstall partedit'.
2013-06-18 08:28:03 +00:00
Devin Teske
8de4fc8d23
Oops, in SVN r251905 I forgot that f_die takes the return code as the first
...
argument (not the format).
2013-06-18 08:22:51 +00:00
Devin Teske
6dcefcac2b
Improve the INDEX format. Whitespace improvements, format improvements, typo
...
and grammatical fixes.
2013-06-18 08:15:56 +00:00
Devin Teske
a67f39c51a
Remove unnecessary loops, perform some code consolidation, and add some
...
additional error checking/reporting.
2013-06-18 07:36:09 +00:00
Devin Teske
c3ffa2ba18
Whitespace improvements.
2013-06-18 07:33:45 +00:00
Baptiste Daroussin
76f8eb196c
Fix bindings of keys when in the partition editor. By adding the usual input binding to the "partlist" sub window.
...
This is a workaround, as for unknown yet reason the keys binded on the Partition Edition window are the one from partlist instead of the one from standard "formfield"
Reported by: alfred, nwhitehorn
2013-06-17 15:16:14 +00:00
Devin Teske
65c7c08716
Style/comments.
2013-06-15 13:38:21 +00:00
Devin Teske
c6f73e3099
Add skeleton processing of selected packages in the order in which they
...
should be processed. De-select each package as we "process" (actual
processing still pending) each package so that if we get an error, we can
return to an accurate state of selected packages.
2013-06-14 19:35:30 +00:00
Devin Teske
f184cec5a9
Make the default choice for FTP media access use "auto".
2013-06-11 03:37:29 +00:00