aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--g_octave/__init__.py2
-rw-r--r--g_octave/ebuild.py4
-rwxr-xr-xscripts/g-octave6
3 files changed, 8 insertions, 4 deletions
diff --git a/g_octave/__init__.py b/g_octave/__init__.py
index c82fed2..9f4cf91 100644
--- a/g_octave/__init__.py
+++ b/g_octave/__init__.py
@@ -32,4 +32,4 @@ __url__ = 'http://g-octave.rafaelmartins.eng.br/'
__copyright__ = '(c) 2009-2010 %s' % __author__
__license__ = 'GPLv2'
-__version__ = '0.2'
+__version__ = '0.2.1'
diff --git a/g_octave/ebuild.py b/g_octave/ebuild.py
index afc2ddc..3ed11f5 100644
--- a/g_octave/ebuild.py
+++ b/g_octave/ebuild.py
@@ -278,8 +278,8 @@ RDEPEND="${DEPEND}
allowed_versions.append(_version)
to_install.append('%s-%s' % (pkg, self.__dbtree.version_compare(allowed_versions)))
-
- if len(to_install) == 0:
+
+ if len(allowed_versions) == 0:
raise EbuildException('Can\'t resolve a dependency: %s' % pkg)
# creating the ebuilds for the dependencies, recursivelly
diff --git a/scripts/g-octave b/scripts/g-octave
index 81703f6..3b834e1 100755
--- a/scripts/g-octave
+++ b/scripts/g-octave
@@ -189,7 +189,11 @@ def main():
out.einfo('No updates available.')
return os.EX_OK
-
+ else:
+ if options.sync:
+ out.eerror('"--sync" not available, please install g-octave-9999 if you want this.')
+ return os.EX_USAGE
+
check_db_cache()
conf = Config()