summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-06-21 10:21:15 +0000
committerOlivier Blin <oblin@mandriva.org>2005-06-21 10:21:15 +0000
commit52e3b3cc7959cf016ea1f2a909a75e954ec6afb5 (patch)
treea466d6114a25b68fd587a1e3ad1f2211d7625571
parent5563d3f93cb048162ee954c184e2e60bfa6aed88 (diff)
downloaddrakpxelinux-52e3b3cc7959cf016ea1f2a909a75e954ec6afb5.tar
drakpxelinux-52e3b3cc7959cf016ea1f2a909a75e954ec6afb5.tar.gz
drakpxelinux-52e3b3cc7959cf016ea1f2a909a75e954ec6afb5.tar.bz2
drakpxelinux-52e3b3cc7959cf016ea1f2a909a75e954ec6afb5.tar.xz
drakpxelinux-52e3b3cc7959cf016ea1f2a909a75e954ec6afb5.zip
factorize by using test_similar_label
-rw-r--r--drakpxelinux.pl4
1 files changed, 1 insertions, 3 deletions
diff --git a/drakpxelinux.pl b/drakpxelinux.pl
index e7178c4..094a8a6 100644
--- a/drakpxelinux.pl
+++ b/drakpxelinux.pl
@@ -207,9 +207,7 @@ sub wizard_add_entry {
help => N("Provide the full path to vmlinuz kernel location") },
],
complete => sub {
- if (any { /^$WPXENAME :/ } cat_($network::pxe::pxelinux_help_file)) {
- err_dialog(N("Error!"), N("Found a similar entry in PXE list labeled: %s.\nChoose another label please", $WPXENAME)) and return 'addimg';
- }
+ test_similar_label($WPXENAME) or return 'addimg';
if (($WPXENAME) !~ /^\w+$/) {
err_dialog(N("Error!"), N("PXE label should be an ASCII word/number without space. Please adjust")) and return 'addimg';
}