/[gli]/trunk/src/GLIUtility.py
Gentoo

Log of /trunk/src/GLIUtility.py

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (as text) (annotate)

Revision 701 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 21 16:22:26 2005 UTC (13 years ago) by agaffney
File length: 17126 byte(s)
Diff to previous 700
Fix undefined variable 'output' issue in spawn()


Revision 700 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 21 16:02:32 2005 UTC (13 years ago) by agaffney
File length: 17112 byte(s)
Diff to previous 699
Fix space vs. tab issue


Revision 699 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 21 03:43:17 2005 UTC (13 years ago) by agaffney
File length: 17112 byte(s)
Diff to previous 697
Fix small error with <pipe>.close() returning None.


Revision 697 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 21 02:57:54 2005 UTC (13 years ago) by agaffney
File length: 17089 byte(s)
Diff to previous 695
Add new screen for ClientConfig (nothing in it yet)
Apply modified version of patch from #96644


Revision 695 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jun 19 06:32:08 2005 UTC (13 years ago) by agaffney
File length: 16797 byte(s)
Diff to previous 694
Modify list_mirrors() to return a list of mirror URL/name pairs.


Revision 694 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jun 19 05:22:01 2005 UTC (13 years ago) by codeman
File length: 16656 byte(s)
Diff to previous 687
Adding gli-dialog.py.  Updates to GenDialog.  Added function to GLIUtility to
  get subarch.


Revision 687 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 16 04:20:16 2005 UTC (13 years ago) by robbat2
File length: 16421 byte(s)
Diff to previous 670
add notes about 2.4 support.


Revision 670 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 13 07:30:31 2005 UTC (13 years ago) by agaffney
File length: 16387 byte(s)
Diff to previous 646
Added list_mirrors() and list_stage_tarballs_from_mirror() functions to GLIUtility


Revision 646 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jun 11 07:23:41 2005 UTC (13 years ago) by agaffney
File length: 15838 byte(s)
Diff to previous 642
  Move /tmp/spawn.sh and /tmp/post-install to /var/tmp since that should always
  be executable


Revision 642 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 10 14:15:31 2005 UTC (13 years ago) by samyron
File length: 15826 byte(s)
Diff to previous 623
Added documentation for trim_ip.


Revision 623 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jun 5 03:17:38 2005 UTC (13 years ago) by codeman
File length: 15737 byte(s)
Diff to previous 622
  Added get_eth_devices() to GLIUtility.  Updated netfe.py to newest version.
  More updates to GenDialog :)


Revision 622 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 3 06:41:59 2005 UTC (13 years ago) by agaffney
File length: 15515 byte(s)
Diff to previous 610
Added get_interface_realname() function.


Revision 610 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 31 17:10:18 2005 UTC (13 years ago) by agaffney
File length: 15092 byte(s)
Diff to previous 608
Chroot wrapper
  passes along exit code.


Revision 608 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 31 16:27:16 2005 UTC (13 years ago) by agaffney
File length: 15076 byte(s)
Diff to previous 585
Not being able to fetch the stage tarball is now an exception


Revision 585 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 16 05:16:23 2005 UTC (13 years, 1 month ago) by agaffney
File length: 14981 byte(s)
Diff to previous 581
Moved URI parsing into new function parse_uri()


Revision 581 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 13 18:41:31 2005 UTC (13 years, 1 month ago) by agaffney
File length: 14710 byte(s)
Diff to previous 580
Minor fix to is_uri() regex to allow hyphens in hostname


Revision 580 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 13 18:30:26 2005 UTC (13 years, 1 month ago) by agaffney
File length: 14702 byte(s)
Diff to previous 579
Fix is_realstring() and rewrite is_uri() to use a regex to parse the URI


Revision 579 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 13 04:29:07 2005 UTC (13 years, 1 month ago) by agaffney
File length: 14888 byte(s)
Diff to previous 572
Add unicode support to is_realstring()


Revision 572 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 11 22:38:43 2005 UTC (13 years, 1 month ago) by agaffney
File length: 14950 byte(s)
Diff to previous 568
Fix is_eth_device to test for zero
  return value instead of non-zero.


Revision 568 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 11 04:23:32 2005 UTC (13 years, 1 month ago) by agaffney
File length: 14961 byte(s)
Diff to previous 567
fix tabs/space mixing in format_mac() in GLIUtility


Revision 567 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 10 21:41:03 2005 UTC (13 years, 1 month ago) by codeman
File length: 15028 byte(s)
Diff to previous 564
updated both for new filename.
  date changes. 2004->2005.


Revision 564 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 10 20:33:14 2005 UTC (13 years, 1 month ago) by agaffney
File length: 15049 byte(s)
Diff to previous 563
Removed 'quiet=True' from spawn() calls


Revision 563 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 10 20:04:41 2005 UTC (13 years, 1 month ago) by codeman
File length: 15084 byte(s)
Diff to previous 561
Updated GLIUtility with patches from chotchki.  Also added documentation


Revision 561 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 10 04:28:29 2005 UTC (13 years, 1 month ago) by agaffney
File length: 13669 byte(s)
Diff to previous 560
Minor fixes from bug #90823


Revision 560 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 10 04:11:28 2005 UTC (13 years, 1 month ago) by codeman
File length: 13663 byte(s)
Diff to previous 509
  Added the function for set_etc_portage to ArchTemplate.  no step for
it yet.
  Updated _edit_config in ArchTemplate, make_config, and various other
fixes
  from bug #89683, mostly touchups.


Revision 509 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 14 15:44:03 2005 UTC (13 years, 2 months ago) by agaffney
File length: 13640 byte(s)
Diff to previous 489
  Use blackace's one-liner to add comments for all function for use with
  pythondoc.


Revision 489 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 8 17:15:12 2005 UTC (13 years, 2 months ago) by samyron
File length: 11243 byte(s)
Diff to previous 458
Added support for MAC addresses to the GLIInstallProfile. Added two helpers
to GLIUtility: format_mac and is_mac.


Revision 458 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 30 00:12:52 2005 UTC (13 years, 2 months ago) by agaffney
File length: 10573 byte(s)
Diff to previous 452
Patch from zahna to add
  get_eth_info() function.


Revision 452 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 29 06:40:41 2005 UTC (13 years, 2 months ago) by agaffney
File length: 9344 byte(s)
Diff to previous 420
append to log when unpacking tarball


Revision 420 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 26 04:00:06 2005 UTC (13 years, 2 months ago) by codeman
File length: 9327 byte(s)
Diff to previous 416
changed InstallProfile to remove is_uri check on kernel, stage, and
portage
  URIs.  The blank uri check has been commented out.
  added another patch from zahna for portage tarball selection.
  Added a choice for local_install which determines error checking on
tarballs
  and whether to use existing partitions by default.


Revision 416 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 25 06:38:42 2005 UTC (13 years, 2 months ago) by agaffney
File length: 9291 byte(s)
Diff to previous 397
Commented out spawn() debugging prints


Revision 397 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 22 23:22:30 2005 UTC (13 years, 3 months ago) by agaffney
File length: 9289 byte(s)
Diff to previous 396
switch append_log lines


Revision 396 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 22 20:31:47 2005 UTC (13 years, 3 months ago) by agaffney
File length: 9289 byte(s)
Diff to previous 394
debugging code in spawn()


Revision 394 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 22 07:52:58 2005 UTC (13 years, 3 months ago) by agaffney
File length: 9237 byte(s)
Diff to previous 392
Remove command to 'rm /tmp/spawn.sh'
  as it breaks the piping.


Revision 392 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 22 04:14:40 2005 UTC (13 years, 3 months ago) by agaffney
File length: 9271 byte(s)
Diff to previous 391
added new hash_password() function to GLIUtility


Revision 391 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 22 02:41:14 2005 UTC (13 years, 3 months ago) by agaffney
File length: 8988 byte(s)
Diff to previous 389
added logfile parameter to spawn() calls


Revision 389 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 21 22:33:25 2005 UTC (13 years, 3 months ago) by agaffney
File length: 8870 byte(s)
Diff to previous 384
  Changed chroot wrapper code in spawn() to write the wrapper the python way
  instead of the bash way to avoid quote conflicts.


Revision 384 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Mar 20 05:11:30 2005 UTC (13 years, 3 months ago) by agaffney
File length: 8801 byte(s)
Diff to previous 374
spawn() outputs
  to the actual tty8 with display_on_tty8 flag. Compile output logfile moved
  into /mnt/gentoo in prepare_chroot(). Removed fifo code in gtkfe


Revision 374 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 17 18:02:35 2005 UTC (13 years, 3 months ago) by agaffney
File length: 8914 byte(s)
Diff to previous 373
add 2>&1 to cmd in spawn()


Revision 373 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 17 06:52:55 2005 UTC (13 years, 3 months ago) by agaffney
File length: 9027 byte(s)
Diff to previous 372
chmod a+x generated script in spawn()


Revision 372 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 17 06:12:15 2005 UTC (13 years, 3 months ago) by agaffney
File length: 8948 byte(s)
Diff to previous 371
change exitsuccess() back


Revision 371 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 17 03:59:52 2005 UTC (13 years, 3 months ago) by agaffney
File length: 8854 byte(s)
Diff to previous 370
spawn() automatically
  creates wrapper script for commands run inside chroot so multiple commands
  and redirection can be used.


Revision 370 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 16 18:54:52 2005 UTC (13 years, 3 months ago) by agaffney
File length: 8756 byte(s)
Diff to previous 369
added debugging code to GLIUtility.exitsuccess()


Revision 369 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 16 18:03:31 2005 UTC (13 years, 3 months ago) by agaffney
File length: 8708 byte(s)
Diff to previous 368
  Modified GLIUtility.exitsuccess() to work with return value from
  commands.getstatusoutput instead of os.waitpid()


Revision 368 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 16 15:24:28 2005 UTC (13 years, 3 months ago) by codeman
File length: 8850 byte(s)
Diff to previous 367
proper indentation please


Revision 367 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 16 09:51:30 2005 UTC (13 years, 3 months ago) by agaffney
File length: 8857 byte(s)
Diff to previous 366
but some debugging code in GLIUtility.exitsuccess()


Revision 366 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 16 09:49:41 2005 UTC (13 years, 3 months ago) by agaffney
File length: 8847 byte(s)
Diff to previous 357
but some debugging code in GLIUtility.exitstatus()


Revision 357 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 7 08:52:10 2005 UTC (13 years, 3 months ago) by agaffney
File length: 8749 byte(s)
Diff to previous 310
switch spawn() over to using commands.getstatusoutput instead of fork/waitpid


Revision 310 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 1 07:22:52 2005 UTC (13 years, 4 months ago) by agaffney
File length: 9241 byte(s)
Diff to previous 201
changed tty8 output to a fifo


Revision 201 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 4 22:18:18 2005 UTC (13 years, 5 months ago) by codeman
File length: 9126 byte(s)
Diff to previous 186
ok large update here. first: removed _depends. second: fixed spawn()s.
third: moved _ functions from Utility back to ArchTemplate
4: moved bootloader to x86Template
5: lots of misc other fixes


Revision 186 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 20 19:56:08 2004 UTC (13 years, 6 months ago) by samyron
File length: 10251 byte(s)
Diff to previous 162
Changed the way exceptions work...


Revision 162 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Dec 11 02:29:39 2004 UTC (13 years, 6 months ago) by agaffney
File length: 10155 byte(s)
Diff to previous 129
Added a function to GLIUtility to pull a value from a make.conf-style config file


Revision 129 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 16 05:28:54 2004 UTC (13 years, 7 months ago) by agaffney
File length: 10022 byte(s)
Diff to previous 105
more partition code fixes


Revision 105 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 11 17:53:57 2004 UTC (13 years, 7 months ago) by samyron
File length: 9929 byte(s)
Diff to previous 104
Added some Notification code to the ClientController. Also fixed a small bug in GLIUtility.


Revision 104 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Nov 6 07:15:52 2004 UTC (13 years, 7 months ago) by agaffney
File length: 9935 byte(s)
Diff to previous 103
hacked spawn() to optionally return command output


Revision 103 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Nov 6 06:48:31 2004 UTC (13 years, 7 months ago) by agaffney
File length: 9675 byte(s)
Diff to previous 102
added append_log flag to spawn() function in GLIUtility


Revision 102 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Nov 6 05:04:00 2004 UTC (13 years, 7 months ago) by samyron
File length: 9595 byte(s)
Diff to previous 86
Started porting GLIInstallTemplate to the GLIArchitectureTemplate


Revision 86 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 31 15:34:34 2004 UTC (13 years, 9 months ago) by samyron
File length: 9517 byte(s)
Diff to previous 81
Cleanups and updates...


Revision 81 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 25 19:38:10 2004 UTC (13 years, 9 months ago) by samyron
File length: 9526 byte(s)
Diff to previous 80
Bugfixes.


Revision 80 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 25 14:23:07 2004 UTC (13 years, 9 months ago) by samyron
File length: 9525 byte(s)
Diff to previous 77
Added set_proxys to GLIClientController. Added a few new exceptions to GLIException. Rewrote edit_config and added it to
GLIUtility.


Revision 77 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 24 22:01:21 2004 UTC (13 years, 9 months ago) by samyron
File length: 8690 byte(s)
Diff to previous 72
run_cmd has been fixed in GLIUtility. All of the exceptions raised in these 3 files are now subclasses of GLIException.


Revision 72 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 17 15:32:04 2004 UTC (13 years, 10 months ago) by samyron
File length: 8532 byte(s)
Diff to previous 69
Various updates.


Revision 69 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 11 15:22:32 2004 UTC (13 years, 10 months ago) by samyron
File length: 6480 byte(s)
Diff to previous 68
Another small update to GLIUtility


Revision 68 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 11 15:07:20 2004 UTC (13 years, 10 months ago) by samyron
File length: 6599 byte(s)
Diff to previous 67
Removed all of the pre/post stuff from GLIInstallProfile. None of this is needed as all of the "pre" stuff is handled in
GLIClientConfiguration. run_cmd has been rewritten in GLIUtility.


Revision 67 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 10 16:35:41 2004 UTC (13 years, 10 months ago) by samyron
File length: 6679 byte(s)
Diff to previous 65
Updates to both GLIClientConfiguration and GLIUtility


Revision 65 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 9 19:43:57 2004 UTC (13 years, 10 months ago) by samyron
File length: 6058 byte(s)
Diff to previous 64
More updates to GLIClientConfiguration and GLIUtility. GLIClientConfiguration now supports a default gateway.


Revision 64 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 9 17:30:44 2004 UTC (13 years, 10 months ago) by samyron
File length: 6062 byte(s)
Diff to previous 61
Update to GLIClientConfiguration. It now will serialize itself as well as load itself from an xml file. A few more options added, for
networking. Minor GLIUtility updates.


Revision 61 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Aug 7 18:46:13 2004 UTC (13 years, 10 months ago) by samyron
File length: 6295 byte(s)
Diff to previous 56
Updates to GLIUtility. run_cmd() and run_bash() were added.


Revision 56 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 11 20:13:11 2004 UTC (14 years, 1 month ago) by samyron
File length: 4330 byte(s)
Diff to previous 55
Updated GLIUtility. Added an is_nfs() method. Also fixed is_hostname


Revision 55 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 10 16:35:43 2004 UTC (14 years, 1 month ago) by samyron
File length: 4234 byte(s)
Diff to previous 37
Updates to GLIInstallProfile. add_network_interface added. set_network_interfaces modified.


Revision 37 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 6 20:58:16 2004 UTC (14 years, 2 months ago) by samyron
File length: 3838 byte(s)
Diff to previous 35
Many functions added to the InstallProfile. Also, all methods in
GLIUtility.py were changed from _<method> to just <method> because they
are not considered private.


Revision 35 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Apr 4 03:26:18 2004 UTC (14 years, 2 months ago) by npmccallum
File length: 3722 byte(s)
Diff to previous 21
Lots of stuff...


Revision 21 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue Mar 16 02:38:19 2004 UTC (14 years, 3 months ago) by esammer
File length: 3736 byte(s)
Added patches submitted by Scott Myron - The New Guy(tm). Some generic functions moved into GLIUtility and touched up.


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sticky Revision:

  ViewVC Help
Powered by ViewVC 1.1.20