Commits

Anonymous committed fd83a7b

Prep for release 3.0a2

Comments (0)

Files changed (6)

+2011-10-31  Jason Pierce <echo -e "moc\x2eliamg\x40nosaj.ecreip" | rev>  <echo -e "moc\x2eliamg\x40nosaj.ecreip" | rev>
+
+	* src/vasm/data/setup_logging.sh:
+	Restore setup_logging.sh to correct file.
+	[a35d03754cd5] [3.0a1]
+
+2011-11-01  Jason Pierce <echo -e "moc\x2eliamg\x40nosaj.ecreip" | rev>  <echo -e "moc\x2eliamg\x40nosaj.ecreip" | rev>
+
+	* _build/PKGBUILD:
+	Update checksums and _hgrepo. Closes #17.
+	[b08beb619695]
+
+	* .hgtags:
+	Closes #20.
+	[1ede81b071a6]
+
+2011-11-01  Moises Henriquez  <m0e.lnx@gmail.com>
+
+	* src/vasm/backend/BOOTLOADERS.py,
+	src/vasm/ui/gtk2/modules/usermanage.py:
+	Fixes #21
+	[0da5d560ad93]
+
+	* src/vasm/ui/gtk2/modules/bootloaders.py,
+	src/vasm/ui/tui/modules/tui_bootloaders.py:
+	Detecting no bootsector available
+	[c42f022ee482]
+
+2011-11-01  M0E-lnx  <M0E-lnx>
+
+	* src/vasm/ui/tui/modules/tui_bootloaders.py:
+	Fixed crash when bootsector cannot be read and replaced it with a
+	friendly error message on the ui
+	[fc80a8429dc3]
+
+2011-11-01  Moises Henriquez  <m0e.lnx@gmail.com>
+
+	* src/vasm/ui/gtk2/modules/bootmode.py,
+	src/vasm/ui/gtk2/modules/loginmanager.py,
+	src/vasm/ui/gtk2/panedui.py, src/vasm/ui/tui/modules/tui_fstab.py,
+	src/vasm/ui/tui/tvasm.py:
+	Fixed more paths to images on modules, Fixed title on tui fstab
+	module (adding entry)
+	[3b17a0cbb4b1]
+
+	* src/vasm/data/gksu.png:
+	Added gksu.png to repo
+	[4cf42fc4a515]
+
+	* setup.py, src/vasm/ui/gtk2/panedui.py, src/vasm/ui/tui/tvasm.py:
+	Fixed junk .pyc files when escalating privileges
+	[e2b7ab591835]
+
+2011-11-01  rbistolfi  <rbistolfi>
+
+	* src/vasm/ui/gtk2/modules/services.py:
+	Fixed high CPU usage in services.py
+
+	There is high cpu usage caused by services.py by registering
+	_do_enable_widget and _do_disable_widget for execution from the
+	gobject event loop. This results in about 40000 calls for each
+	function. The same goal can be accomplished by setting the
+	gtk.Dialog gtk.DIALOG_MODAL flag, which freezes the rest of the
+	application from user input.
+	[4158227533f0]
+
+2011-11-02  M0E-lnx  <M0E-lnx>
+
+	* src/vasm/ui/tui/modules/tui_partitioning.py:
+	[tui] Fix crash on tui_partitioning because of missing reference
+	[79e9d276ad0f]
+
+2011-11-02  Moises Henriquez  <m0e.lnx@gmail.com>
+
+	* src/vasm/ui/gtk2/modules/services.py:
+	[gui] Fixed label height adjustment on services display
+	[eb6a6d91a7f2]
+
+	* docs/vasm.1:
+	Added simple man page
+	[e21a55031caf]
+
+	* src/vasm/ui/gtk2/modules/services.py:
+	[gui] Fixed broken frozen services window after applying changes due
+	to dialog being set modal
+	[6e602cc81101]
+
+2011-11-03  Moises Henriquez  <m0e.lnx@gmail.com>
+
+	* DEPS.txt, TODO.txt, src/tests/__init__.py, src/tests/config.py,
+	src/tests/jailedtest.sh, src/tests/test_BOOTMODE.py,
+	src/tests/test_DATESET.py, src/tests/test_FSTAB.py,
+	src/tests/test_LOGINMANAGERS.py, src/tests/test_NETWORKING.py,
+	src/tests/test_SERVICES.py, src/tests/test_SKEL.py,
+	src/tests/test_USERMANAGE.py, src/vasm/backend/NETWORKING.py,
+	src/vasm/backend/SERVICES.py, src/vasm/backend/tests/__init__.py,
+	src/vasm/backend/tests/config.py,
+	src/vasm/backend/tests/jailedtest.sh,
+	src/vasm/backend/tests/test_BOOTMODE.py,
+	src/vasm/backend/tests/test_DATESET.py,
+	src/vasm/backend/tests/test_FSTAB.py,
+	src/vasm/backend/tests/test_LOGINMANAGERS.py,
+	src/vasm/backend/tests/test_SERVICES.py,
+	src/vasm/backend/tests/test_SKEL.py,
+	src/vasm/backend/tests/test_USERMANAGE.py:
+	Begin working on a Networking module for the backend
+	[a5f6e91885cf]
+
+2011-11-04  Moises Henriquez  <m0e.lnx@gmail.com>
+
+	* src/tests/test_NETWORKING.py, src/vasm/backend/NETWORKING.py:
+	Additions to Networking backend
+	[7ff839cd32ac]
+
+2011-11-11  Moises Henriquez  <m0e.lnx@gmail.com>
+
+	* src/vasm/backend/NETWORKING.py,
+	src/vasm/ui/gtk2/modules/networking.py,
+	src/vasm/ui/gtk2/support/widgets.py:
+	Begin coding initial networking ui ideas [gui]
+	[557d0d38a47d]
+
+2011-11-14  Moises Henriquez  <m0e.lnx@gmail.com>
+
+	* src/vasm/backend/BOOTLOADERS.py, src/vasm/backend/BOOTMODE.py,
+	src/vasm/backend/DATESET.py, src/vasm/backend/FSTAB.py,
+	src/vasm/backend/GDMHELPER.py, src/vasm/backend/LOGINMANAGERS.py,
+	src/vasm/backend/NETWORKING.py, src/vasm/backend/PASSWORDS.py,
+	src/vasm/backend/REPOS.py, src/vasm/backend/SERVICES.py,
+	src/vasm/backend/SKEL.py, src/vasm/backend/USERADMIN.py,
+	src/vasm/backend/bootloaders.py, src/vasm/backend/bootmode.py,
+	src/vasm/backend/dateset.py, src/vasm/backend/fstab.py,
+	src/vasm/backend/gdmhelper.py, src/vasm/backend/loginmanagers.py,
+	src/vasm/backend/networking.py, src/vasm/backend/passwords.py,
+	src/vasm/backend/repos.py, src/vasm/backend/services.py,
+	src/vasm/backend/skel.py, src/vasm/backend/useradmin.py,
+	src/vasm/ui/gtk2/modules/bootloaders.py,
+	src/vasm/ui/gtk2/modules/bootmode.py,
+	src/vasm/ui/gtk2/modules/dateset.py,
+	src/vasm/ui/gtk2/modules/fstab.py,
+	src/vasm/ui/gtk2/modules/loginmanager.py,
+	src/vasm/ui/gtk2/modules/networking.py,
+	src/vasm/ui/gtk2/modules/password.py,
+	src/vasm/ui/gtk2/modules/pyfstab.py,
+	src/vasm/ui/gtk2/modules/repos.py,
+	src/vasm/ui/gtk2/modules/services.py,
+	src/vasm/ui/gtk2/modules/skel.py,
+	src/vasm/ui/gtk2/modules/usermanage.py,
+	src/vasm/ui/gtk2/support/widgets.py,
+	src/vasm/ui/tui/modules/tui_autologin.py,
+	src/vasm/ui/tui/modules/tui_bootloaders.py,
+	src/vasm/ui/tui/modules/tui_bootmode.py,
+	src/vasm/ui/tui/modules/tui_dateset.py,
+	src/vasm/ui/tui/modules/tui_fstab.py,
+	src/vasm/ui/tui/modules/tui_loginmanager.py,
+	src/vasm/ui/tui/modules/tui_partitioning.py,
+	src/vasm/ui/tui/modules/tui_password.py,
+	src/vasm/ui/tui/modules/tui_repos.py,
+	src/vasm/ui/tui/modules/tui_services.py,
+	src/vasm/ui/tui/modules/tui_skel.py,
+	src/vasm/ui/tui/modules/tui_usermanage.py:
+	Renamed backend modules to follow normal naming convention
+	[ac7e5a50f1a0]
+
+	* src/tests/test_BOOTMODE.py, src/tests/test_DATESET.py,
+	src/tests/test_FSTAB.py, src/tests/test_LOGINMANAGERS.py,
+	src/tests/test_NETWORKING.py, src/tests/test_SERVICES.py,
+	src/tests/test_SKEL.py, src/tests/test_USERMANAGE.py,
+	src/tests/test_bootmode.py, src/tests/test_dateset.py,
+	src/tests/test_fstab.py, src/tests/test_loginmanagers.py,
+	src/tests/test_networking.py, src/tests/test_services.py,
+	src/tests/test_skel.py, src/tests/test_usermanage.py,
+	src/vasm/backend/networking.py, src/vasm/ui/gtk2/support/widgets.py:
+	Fixed references in test code to reflect naming convention change
+	[27c13cdd8a6e]
+
+2011-12-31  rbistolfi  <rbistolfi>
+
+	* src/vasm/backend/__init__.py, src/vasm/ui/__init__.py,
+	src/vasm/ui/gtk2/__init__.py:
+	Remove __all__ definitions from packages that doesnt need it. Fixes
+	import error using the "from vasm.backend import foo" syntax
+
+	if a package?s __init__.py code defines a list named __all__, it is
+	taken to be the list of module names that should be imported when
+	from package import * is encountered. The backend package allowed
+	only the test package to be imported in its __all__ definition, and
+	an exception was raised when importing any module from the backend
+	package.
+	[82142b1d8015] [tip]
+
 # Contributor: pierce.jason [VL7]
 
 pkgname=vasm
-pkgver=3.0a1
+pkgver=3.0a2
 pkgrel=1
 pkgdesc="Vectorlinux's Administration & System Menu (Alpha release). System configuration tool for both TUI and GUI. Complete rewrite of vasm with goals to provide greater modularity for maintainability and support for localization and internationalization, and tighter integration with the distro installer and the system itself. The prior vasm (renamed and moved to vasm-legacy) will remain installed on the system for your convenience."
 arch=('any')
 makedepends=( 'setuptools' ) # Manually install before buildinging package
 backup=("etc/sudoers.d/vasm")
 changelog="slack-changes"
-#_hgrepo="pierce_jason"
 _hgrepo="m0e_lnx"
-#source=("https://bitbucket.org/$_hgrepo/vasm/get/$pkgver.tar.bz2"
 source=("https://bitbucket.org/$_hgrepo/vasm/downloads/$pkgname-$pkgver.tar.bz2"
 	"slack-desc"
 	"sudoers.d-vasm")
 install="doinst.sh"
-sha256sums=('bc8e1ec205ed874c60dbf5edf1242ca756ff14b741c0a2efee4dc82e3730f0bf'
+sha256sums=('...'
             '12d54abfa108116446cca9f8e266e8f8c2e071fbbaf44132d1bc3bd3c0260d40'
             'f3cf56b9a9e8578176ca64d5c69e2d8ddec4aa24a9278167a85d9bf915f21bab')
 build() {
-#	cd $srcdir/$_hgrepo-$pkgname-$pkgver;
 	cd $srcdir/$pkgname-$pkgver;
-	
-	echo $PWD;ls;
+
+	# Main stuff
 	python setup.py install --root="$pkgdir/";
-	
+
+	# Text docs
 	mkdir -p $pkgdir/usr/doc/$pkgname-$pkgver;
 	cp *.txt $pkgdir/usr/doc/$pkgname-$pkgver;	
 	cp src/vasm/data/*.txt $pkgdir/usr/doc/$pkgname-$pkgver;
 	cp src/vasm/data/LICENSE $pkgdir/usr/doc/$pkgname-$pkgver;
 
+	# Manpage(s)
+	mkdir -p $pkgdir/usr/share/man/man1/
+	install -m644 docs/vasm.1 "${pkgdir}/usr/share/man/man1/"
+
+	# Some slack- docs
 	cd $srcdir;
 	cp ../slack-{changes,desc} $pkgdir/usr/doc/$pkgname-$pkgver;
+
+	# Sudoers permissions
 	install -d -m700 $pkgdir/etc/sudoers.d
-	install -m400 sudoers.d-vasm $pkgdir/etc/sudoers.d/
+	install -m400 sudoers.d-vasm $pkgdir/etc/sudoers.d/vasm.new
 }
 #!/bin/sh
+config() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no config file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/sudoers.d/vasm.new
+
 exec /usr/share/vasm/setup_logging.sh;
 
 echo "See /usr/doc/vasm-*/slack-changes for a brief changelog.";

_build/slack-changes

+* 3.0a2-noarch-1vl70
+	- NEW manpage.
+	- NEW networking module.
+	- Fix bugs in user-management, bootloaders, partitioning, services.
+	- Fix/add images in multiple modules in the GUI interface.
+	- Fix junk *.pyc files when escalating privileges.
+	- Fixed high CPU usage in services.py.
+	- Extend automated testing in code.
+	- Normalized module filenames.
 * 3.0a1-noarch-1vl70
 	- Full rewrite, using python instead of bash.
 	- Modular code using seperate directories for backend, and gui/tui presentation layers.
     return compileall.compile_dir('src/')
 
 byte_compile_code()
-version = '3.0a1'
+version = '3.0a2'
 long_description = """\
 Vectorlinux's Administration & System Menu (Alpha release). 
 System configuration tool for both TUI and GUI. Complete rewrite of 
         ('/usr/share/applications', ['src/vasm/data/vasm.desktop',
             'src/vasm/data/vasm-tui.desktop'],
         ),
-        ('/usr/share/vasm', ['src/vasm/data/LICENSE',
-            'src/vasm/data/bootmenu.png',
+        ('/usr/share/vasm', ['src/vasm/data/bootmenu.png',
             'src/vasm/data/bootmode.png',
             'src/vasm/data/category_graphical_environment.png',
             'src/vasm/data/category_hardware.png',
             'src/vasm/data/category_unknown.png',
             'src/vasm/data/datetime.png',
             'src/vasm/data/gdmconfig.png',
+            'src/vasm/data/gksu.png',
             'src/vasm/data/gparted.svg',
             'src/vasm/data/gui_desktop.png',
             'src/vasm/data/harddisk.png',
             'src/vasm/data/login_unknown.png',
             'src/vasm/data/login_xdm.png',
             'src/vasm/data/package-utilities.png',
-            'src/vasm/data/servicehelp.txt',
             'src/vasm/data/setup_logging.sh',
             'src/vasm/data/terminal.png',
             'src/vasm/data/users.png',
+            'src/vasm/data/vasm-tui.desktop',
+            'src/vasm/data/vasm.desktop',
             'src/vasm/data/vasm.png',
             'src/vasm/data/vasmcc-logo.png',
             'src/vasm/data/vasmcc-logo_trimmed.png',
             'src/vasm/data/vectorlinux-logo.png',
             'src/vasm/data/xfce.png',
-            'src/vasm/data/xscreensaver.xpm',
-            'src/vasm/data/gksu.png'])],
+            'src/vasm/data/xscreensaver.xpm'])],
     requires = ['psutil','urwid','parted','pexpect','shutil'],
-    scripts = ['src/vasm/vasm'])
+    scripts = ['src/vasm/vasm'])

src/vasm/backend/utils.py

 
 __author__ = "Moises Henriquez"
 __author_email__ = "moc.liamg@xnl.E0M"[::-1]
-__vasm_version__ = '3.0a1'
+__vasm_version__ = '3.0a2'
 datapath = '/usr/share/vasm'
 
 def _(txt):