MdkActe <[EMAIL PROTECTED]> writes: > After your patch: > > Undefined subroutine &main::mandrake_release called at /usr/sbin/drakconf.real line >460. > Undefined subroutine &main::mandrake_release called at /usr/sbin/drakconf.real line >460. > END failed--call queue aborted. > > something still missing :(
mandrake_release() was added to cvs through this patch:
Index: common.pm =================================================================== RCS file: /cooker/gi/perl-install/common.pm,v retrieving revision 1.161 retrieving revision 1.163 diff -u -w -p -r1.161 -r1.163 --- common.pm 12 Nov 2002 12:05:40 -0000 1.161 +++ common.pm 25 Nov 2002 12:12:15 -0000 1.163 @@ -9,7 +9,7 @@ use vars qw(@ISA @EXPORT $SECTORSIZE); @ISA = qw(Exporter); # no need to export ``_'' -@EXPORT = qw($SECTORSIZE N N_ translate untranslate formatXiB removeXiBSuffix formatTime setVirtual makedev unmakedev salt set_permissions files_exist set_alternative); +@EXPORT = qw($SECTORSIZE N N_ translate untranslate formatXiB removeXiBSuffix formatTime setVirtual makedev unmakedev salt set_permissions files_exist set_alternative mandrake_release); # perl_checker: RE-EXPORT-ALL push @EXPORT, @MDK::Common::EXPORT; @@ -240,6 +240,10 @@ sub set_permissions { } run_program::rooted($::prefix, "/bin/chmod", $perms, $file) or die "Could not start chmod!"; +} + +sub mandrake_release { + chomp_(cat_("/etc/mandrake-release")) } 1;
hum, i think i'll have to do a drakxtools packages with cvs from a few days ago before we finish the switch to gtk+. 2002-11-27 17:00 seems to be the right date to use. comparing with current developments, you'll missed:
2002-12-04 13:32 tvignaud * pkgs.pm: perl_checker 2002-12-04 13:21 uid553 * install_steps_gtk.pm: use option tty7 to force X server to be on tty7 (instead of opening tty5 and tty6 so that the next available tty is tty7) 2002-12-04 12:38 tvignaud * harddrake/data.pm, harddrake/ui.pm, standalone/harddrake2: kill "used by only one" harddrake::ui module, move its content to standalone/harddrake2 2002-12-04 11:39 tvignaud * harddrake/ui.pm: cleanups 2002-12-04 11:38 tvignaud * ugtk2.pm: reverse 2002-12-04 11:21 tvignaud * harddrake/ui.pm: hide config buttons when switching from a configurable device to a non configurable one 2002-12-04 11:14 tvignaud * harddrake/ui.pm: fix gtktext_insert() usage 2002-12-04 09:30 tvignaud * security/main.pm: share common options 2002-12-04 09:30 tvignaud * security/msec.pm: - fix obvious pixel typo (s/if/if_/) - no need to maintain dummy documentation about something which is called only in one place - simplify 2002-12-04 09:25 tvignaud * standalone/drakxservices: strict mode 2002-12-04 08:49 tvignaud * ugtk2.pm: clean up 2002-12-04 08:45 tvignaud * harddrake/ui.pm: gtk+2 port, yeah baby :-) 2002-12-03 23:02 uid551 * share/po/: pt_BR.po, zh_CN.po: updated Brazilian and Chinese files 2002-12-03 22:08 uid551 * share/fonts.tar.bz2: First try of fonts for Xft2 2002-12-03 21:04 uid535 * ugtk2.pm: titisux, revert the pango pixels stuff 2002-12-03 21:02 uid535 * common.pm, c/stuff.xs.pl: workaround perl sprintf bug when some parameters are utf8 and some not 2002-12-03 15:14 pablo * share/po/: et.po, ja.po, vi.po: updated Estonian and Vietnamese files; fixed typo in Japanese file 2002-12-03 15:12 prigaux * install_any.pm, partition_table.pm, scanner.pm, timezone.pm: do not use "local *F", use "my $F" or output() instead 2002-12-03 15:11 prigaux * security/msec.pm: fix typo 2002-12-03 15:08 prigaux * raid.pm: use output() 2002-12-03 14:32 prigaux * network/nfs.pm: (find_exports): use run_program::raw + stdout 2002-12-03 14:19 prigaux * fs.pm: one need run_program::raw() to use options 2002-12-03 14:13 gc * ugtk2.pm: misc fixes 2002-12-03 14:12 gc * install_gtk.pm, install_steps_gtk.pm, mouse.pm, services.pm, diskdrake/hd_gtk.pm, diskdrake/smbnfs_gtk.pm, interactive/gtk.pm: gtk2 2002-12-03 14:12 prigaux * commands.pm, common.pm, detect_devices.pm, devices.pm, install_steps.pm, Xconfig/test.pm: do not use "local my $F, ...", use "local(my $F, ...) instead 2002-12-03 14:12 tvignaud * ugtk2.pm, standalone/logdrake: add gtktext_append() and uses it 2002-12-03 14:09 prigaux * network/tools.pm: cleanup use of filehandles 2002-12-03 13:53 prigaux * network/network.pm: (read_resolv_conf): simplify 2002-12-03 13:46 prigaux * Xconfig/test.pm: do not use "local *F" 2002-12-03 13:42 prigaux * devices.pm: do not use "local *F" 2002-12-03 13:39 prigaux * common.pm: (formatXiB): simplify 2002-12-03 13:33 prigaux * common.pm: use "my $F" instead of "local *F" (and cleanup) 2002-12-03 13:26 prigaux * commands.pm: remove pack_ and unpack_ (unused) 2002-12-03 13:25 damien * any.pm: allow #, and other characters in phone number 2002-12-03 13:23 prigaux * detect_devices.pm: do not use "local *F", use run_program::get_stdout() or "local $F" instead 2002-12-03 13:09 gc * network/tools.pm, pkgs.pm: make it $::testing aware 2002-12-03 13:05 prigaux * security/msec.pm: simplify (esp. use cat_) 2002-12-03 12:58 prigaux * security/msec.pm: (get_value): cleanup 2002-12-03 00:36 prigaux * network/network.pm: (add2hosts): use output and pixelization 2002-12-03 00:18 prigaux * printer/: main.pm, office.pm: simplify 2002-12-02 21:52 prigaux * common.pm: (set_alternative): simplify (files_exist): simplify 2002-12-02 21:41 prigaux * any.pm, install_steps.pm, mouse.pm, network/isdn.pm, network/netconnect.pm, network/smb.pm, network/tools.pm: use output_with_perm() 2002-12-02 18:54 prigaux * any.pm, install_steps_interactive.pm: any::get_autologin() doesnt modify $o, it returns a hash 2002-12-02 18:53 prigaux * bootlook.pm: - use any::get_autologin and any::set_autologin - any::set_autologin doesn't set /etc/sysconfig/autologin to perm 600, is it needed?? 2002-12-02 18:42 prigaux * any.pm, install_steps.pm, install_steps_interactive.pm: use $::prefix 2002-12-02 18:40 prigaux * standalone/adduserdrake: remove commented code 2002-12-02 18:38 prigaux * any.pm: (get_autologin): $o->{autologin} is set to the chosen user only if AUTOLOGIN is set (it now mirrors what set_autologin() does) 2002-12-02 18:34 prigaux * Xconfig/card.pm: don't use $_ 2002-12-02 18:33 prigaux * any.pm, install_steps.pm: any::runlevel() doesnt need the prefix anymore 2002-12-02 18:33 prigaux * proxy.pm: this package is unused, no need to keep it 2002-12-02 18:14 prigaux * Xconfig/various.pm: - any::runlevel() doesnt need the prefix anymore - fix use of any:runlevel() 2002-12-02 18:08 prigaux * Xconfig/main.pm: any::runlevel() doesnt need the prefix anymore 2002-12-02 18:07 prigaux * bootlook.pm: use any::runlevel() 2002-12-02 18:07 prigaux * bootloader.pm: use output() 2002-12-02 18:07 adesmons * network/adsl.pm, network/modem.pm, network/netconnect.pm, network/network.pm, standalone/drakconnect: Some data are now fetched from system instead of drakconnect conf file (adsl, ppp, ifcfg-eth) 2002-12-02 18:06 prigaux * any.pm: use output and append_to_file 2002-12-02 18:06 prigaux * Makefile: adapt "make test_pms" to new perl_checker 2002-12-02 18:01 prigaux * fs.pm: formatting timeout is now 1 hour 2002-12-02 17:55 prigaux * fs.pm: remove the duplicate mke2fs (fixes buggy 1.225 change) 2002-12-02 17:53 prigaux * fs.pm: use append_to_file() 2002-12-02 14:35 tvignaud * ugtk2.pm, standalone/logdrake: make append option be usable as other ones 2002-12-02 12:27 tvignaud * standalone/logdrake: use named tags for color rather than rgbt triplet, waiting for full foreground-gdk support in perl-gtk2 2002-12-02 10:09 tvignaud * ugtk2.pm: gtkfontinfo() is bugged since it uses a C macro which is (oh surprise) not in binary library .... : $fontinfo{$_} = Gtk2::Pango->PANGO_PIXELS($metrics->$func); 2002-12-02 08:36 tvignaud * standalone/: drakTermServ, drakfont: - gtk2 port - consolidate some code in text_view() - perl_checker fixes 2002-12-02 08:35 tvignaud * standalone/logdrake: - gtk2 port - add a note to remember to try gtkhtml instead of TextView - make wait message be transcient and modal (we should share some create_*_dialog() around logdrake/mcc/drakfloppy/rpmdrake) - fixes for 'strict ref' 2002-12-02 08:33 tvignaud * security/main.pm, standalone/drakbackup, standalone/drakconnect: - gtk2 port - perl_checker fixes 2002-12-02 08:32 tvignaud * standalone/drakgw: - fix gtk2 port - let it work with kernel 2.5 too 2002-12-02 08:31 tvignaud * standalone/drakbug: fix gtk2 port 2002-12-02 08:28 tvignaud * ugtk2.pm: - use useless when needed - gtktext_insert() : add an append argument to prevent overwriting already present text in TextBuffer - gtkfontinfo() is bugged since it uses a C macro which is (oh surprise) not in binary library .... : $fontinfo{$_} = Gtk2::Pango->PANGO_PIXELS($metrics->$func); 2002-12-02 08:06 pablo * share/po/: id.po, is.po, it.po, ja.po, ko.po, lt.po, lv.po, mt.po, nl.po, no.po, pl.po, pt.po, pt_BR.po, ro.po, ru.po, sk.po, sl.po, sp.po, sr.po, sv.po, ta.po, th.po, tr.po, uk.po, vi.po, wa.po, zh_CN.po, zh_TW.po: updated pot file 2002-12-02 06:58 pablo * share/po/: DrakX.pot, af.po, ar.po, az.po, be.po, bg.po, br.po, bs.po, ca.po, cs.po, cy.po, da.po, de.po, el.po, eo.po, es.po, et.po, eu.po, fi.po, fr.po, ga.po, gl.po, hr.po, hu.po: updated pot file 2002-11-28 20:29 pablo * share/po/et.po: Updated Estonian file 2002-11-28 16:21 pablo * share/po/pt.po: Updated Portuguese file 2002-11-28 16:07 gc * raid.pm: testing aware 2002-11-28 15:50 tvignaud * standalone/drakperm: one more fix 2002-11-28 15:49 tvignaud * standalone/drakperm: - "use strict" fixes - perl_checker fixes 2002-11-28 14:45 tvignaud * services.pm, services.pm: - my_gtk->main already do the kill 'USR2' and hardcoding signal number was bad anyway - use gtkflush() 2002-11-28 14:26 prigaux * any.pm, bootlook.pm, install_steps_gtk.pm, install_steps_interactive.pm, lang.pm, services.pm, ugtk.pm, harddrake/ui.pm, network/adsl.pm, network/ethernet.pm, network/isdn.pm, network/netconnect.pm, network/network.pm, network/tools.pm, printer/common.pm, printer/cups.pm, printer/detect.pm, printer/gimp.pm, printer/main.pm, printer/printerdrake.pm, resize_fat/fat.pm, resize_fat/io.pm: perl_checker adaptations 2002-11-28 14:10 prigaux * resize_fat/io.pm: remove debug code 2002-11-28 13:47 prigaux * resize_fat/c_rewritten.pm: to export, one needs to inheritate from Exporter 2002-11-28 13:46 prigaux * commands.pm: fix "ps" and "df" (were broken due to localization of *DF and *PS) 2002-11-28 13:44 prigaux * Xconfig/test.pm: in the test snippet, add "use common" to have access to N() 2002-11-28 13:43 prigaux * bootloader.pm: - compare labels case insensitively (thanks to D.Faure) - when reading existing config, remove double quotes around the label (thanks to D.Faure) - add double quotes around the label instead of removing spaces (need checking installkernel compatibility) 2002-11-28 13:00 gc * any.pm: load_category__prompt: use formatAlaTeX 2002-11-28 12:36 prigaux * Makefile: fix removing of pods when installing pms 2002-11-28 11:09 tvignaud * ugtk2.pm: perl_checker fixes 2002-11-28 09:52 tvignaud * ugtk2.pm: fix create_factory_menu*(): since we get an object and not anymore a hash, let just return factory as another variable... 2002-11-28 09:29 tvignaud * standalone/drakgw: fix 2002-11-28 02:08 prigaux * bootloader.pm, bootlook.pm, ftp.pm, install_any.pm, partition_table.pm, network/adsl.pm, printer/printerdrake.pm: perl_checker adaptations 2002-11-27 21:50 prigaux * any.pm, bootloader.pm, bootlook.pm, commands.pm, devices.pm, fs.pm, fsedit.pm, ftp.pm, help.pm, install2.pm, install_any.pm, install_gtk.pm, install_interactive.pm, install_steps.pm, install_steps_gtk.pm, interactive.pm, lang.pm, log.pm, modules.pm, mouse.pm, my_gtk.pm, partition_table.pm, scanner.pm, standalone.pm, swap.pm, timezone.pm, ugtk.pm, Newt/Newt.pm, Xconfig/card.pm, Xconfig/monitor.pm, Xconfig/parse.pm, Xconfig/resolution_and_depth.pm, Xconfig/test.pm, Xconfig/xfree3.pm, c/stuff.pm, diskdrake/interactive.pm, harddrake/data.pm, harddrake/sound.pm, harddrake/ui.pm, interactive/http.pm, interactive/newt.pm, interactive/stdio.pm, network/adsl.pm, network/ethernet.pm, network/isdn.pm, network/isdn_consts.pm, network/network.pm, network/tools.pm, partition_table/gpt.pm, printer/detect.pm, printer/gimp.pm, printer/main.pm, printer/office.pm, printer/printerdrake.pm, resize_fat/c_rewritten.pm, resize_fat/fat.pm, resize_fat/io.pm: perl_checker adaptations 2002-11-27 21:41 prigaux * printer/main.pm: (configure_hpoj): functions dynamically loaded from /usr/sbin/ptal-init are now loaded in printer::hpoj namespace (needs testing) 2002-11-27 21:40 prigaux * .perl_checker: update for new packages (Gtk2), and remove the now-handled-by-perl_check packages 2002-11-27 17:20 tvignaud * standalone/drakgw: - Gtk2 port - perl_checker fixes 2002-11-27 17:10 tvignaud * standalone/drakbug: - Gtk2 port - one perl_checker fix