public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Magnus Granberg" <zorry@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/zorry:master commit in: gobs/bin/
Date: Sat, 30 Jul 2011 01:07:33 +0000 (UTC)	[thread overview]
Message-ID: <158790911ebb653146079c19a4d25a7386e0e4d0.zorry@gentoo> (raw)

commit:     158790911ebb653146079c19a4d25a7386e0e4d0
Author:     Magnus Granberg <zorry <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 30 01:07:13 2011 +0000
Commit:     Magnus Granberg <zorry <AT> gentoo <DOT> org>
CommitDate: Sat Jul 30 01:07:13 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=dev/zorry.git;a=commit;h=15879091

Move pgsql.py part2

---
 gobs/bin/gobs_buildquerys |    4 +---
 gobs/bin/gobs_updatedb    |   14 ++++++--------
 gobs/bin/portage_hooks    |    4 +---
 3 files changed, 8 insertions(+), 14 deletions(-)

diff --git a/gobs/bin/gobs_buildquerys b/gobs/bin/gobs_buildquerys
index 87f1218..7b8121b 100755
--- a/gobs/bin/gobs_buildquerys
+++ b/gobs/bin/gobs_buildquerys
@@ -9,9 +9,7 @@ from gobs.ConnectionManager import connectionManager
 CM=connectionManager(gobs_settings_dict)
 #selectively import the pgsql/mysql querys
 if CM.getName()=='pgsql':
-  from gobs.querys.pgsql import *
-elif CM.getName()=='mysql':
-  from gobs.querys.mysql import *
+  from gobs.pgsql import *
 
 from gobs.check_setup import check_configure_guest
 from gobs.build_queru import queruaction

diff --git a/gobs/bin/gobs_updatedb b/gobs/bin/gobs_updatedb
index d2ff779..a9c8e4a 100755
--- a/gobs/bin/gobs_updatedb
+++ b/gobs/bin/gobs_updatedb
@@ -18,9 +18,7 @@ from gobs.ConnectionManager import connectionManager
 CM=connectionManager(gobs_settings_dict)
 #selectively import the pgsql/mysql querys
 if CM.getName()=='pgsql':
-  from gobs.querys.pgsql import *
-elif CM.getName()=='mysql':
-  from gobs.querys.mysql import *
+  from gobs.pgsql import *
 
 from gobs.check_setup import check_make_conf
 from gobs.arch import gobs_arch
@@ -53,7 +51,7 @@ def init_portage_settings(CM, gobs_settings_dict):
 	print "Setting default config to:", config_id[0]
 	return mysettings
 
-def update_cpv_db(mysettings, CM, gobs_settings_dict):
+def update_cpv_db(mysettings, gobs_settings_dict):
 	"""Code to update the cpv in the database.
 	@type:settings
 	@parms: portage.settings
@@ -65,9 +63,9 @@ def update_cpv_db(mysettings, CM, gobs_settings_dict):
 	print "Checking categories, package, ebuilds"
 	# Setup portdb, gobs_categories, gobs_old_cpv, package
 	myportdb = portage.portdbapi(mysettings=mysettings)
-	init_categories = gobs_categories(CM, mysettings)
-	init_old_cpv = gobs_old_cpv(CM, myportdb, mysettings)
-	init_package = gobs_package(mysettings, CM, myportdb, gobs_settings_dict)
+	init_categories = gobs_categories(mysettings)
+	init_old_cpv = gobs_old_cpv(myportdb, mysettings)
+	init_package = gobs_package(mysettings, myportdb, gobs_settings_dict)
 	package_id_list_tree = []
 	# Will run some update checks and update package if needed
 	# Get categories/package list from portage
@@ -107,7 +105,7 @@ def main():
 	init_arch = gobs_arch(CM)
 	init_arch.update_arch_db()
 	# Update the cpv db
-	update_cpv_db(mysettings, CM, gobs_settings_dict)
+	update_cpv_db(mysettings, gobs_settings_dict)
 	CM.closeAllConnections()
 	
 if __name__ == "__main__":

diff --git a/gobs/bin/portage_hooks b/gobs/bin/portage_hooks
index bdb1699..41321df 100755
--- a/gobs/bin/portage_hooks
+++ b/gobs/bin/portage_hooks
@@ -11,9 +11,7 @@ from gobs.ConnectionManager import connectionManager
 CM=connectionManager(gobs_settings_dict)
 #selectively import the pgsql/mysql querys
 if CM.getName()=='pgsql':
-  from gobs.querys.pgsql import *
-elif CM.getName()=='mysql':
-  from gobs.querys.mysql import *
+  from gobs.pgsql import *
 
 from gobs.package import gobs_package
 from gobs.build_log import gobs_buildlog



             reply	other threads:[~2011-07-30  2:02 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-30  1:07 Magnus Granberg [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-12-21 20:39 [gentoo-commits] dev/zorry:master commit in: gobs/bin/ Magnus Granberg
2012-12-21 20:35 Magnus Granberg
2012-04-29 16:38 Magnus Granberg
2012-04-29 16:05 Magnus Granberg
2012-04-29 15:58 Magnus Granberg
2012-04-29 14:43 Magnus Granberg
2012-04-28  1:14 Magnus Granberg
2012-04-28  1:04 Magnus Granberg
2012-04-27 21:17 Magnus Granberg
2012-04-27 20:59 Magnus Granberg
2012-04-27 20:30 Magnus Granberg
2012-04-27 20:28 Magnus Granberg
2012-04-27 20:28 Magnus Granberg
2011-09-28  1:17 Magnus Granberg
2011-09-26 23:50 Magnus Granberg
2011-09-26 23:48 Magnus Granberg
2011-09-13  1:06 Magnus Granberg
2011-07-29 15:31 Magnus Granberg
2011-07-10 15:31 Magnus Granberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=158790911ebb653146079c19a4d25a7386e0e4d0.zorry@gentoo \
    --to=zorry@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox