summaryrefslogtreecommitdiff
path: root/geneticone/backend
diff options
context:
space:
mode:
Diffstat (limited to 'geneticone/backend')
-rw-r--r--geneticone/backend/__init__.py4
-rw-r--r--geneticone/backend/exceptions.py4
-rw-r--r--geneticone/backend/flags.py28
-rw-r--r--geneticone/backend/package.py16
-rw-r--r--geneticone/backend/portage_helper.py8
5 files changed, 30 insertions, 30 deletions
diff --git a/geneticone/backend/__init__.py b/geneticone/backend/__init__.py
index 0fdd844..55cb10b 100644
--- a/geneticone/backend/__init__.py
+++ b/geneticone/backend/__init__.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
-# File: geneticone/backend/__init__.py
-# This file is part of the Genetic/One-Project, a graphical portage-frontend.
+# File: portato/backend/__init__.py
+# This file is part of the Portato-Project, a graphical portage-frontend.
#
# Copyright (C) 2006 René 'Necoro' Neumann
# This is free software. You may redistribute copies of it under the terms of
diff --git a/geneticone/backend/exceptions.py b/geneticone/backend/exceptions.py
index 292d253..a5cb2fb 100644
--- a/geneticone/backend/exceptions.py
+++ b/geneticone/backend/exceptions.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
-# File: geneticone/backend/exceptions.py
-# This file is part of the Genetic/One-Project, a graphical portage-frontend.
+# File: portato/backend/exceptions.py
+# This file is part of the Portato-Project, a graphical portage-frontend.
#
# Copyright (C) 2006 René 'Necoro' Neumann
# This is free software. You may redistribute copies of it under the terms of
diff --git a/geneticone/backend/flags.py b/geneticone/backend/flags.py
index e7c0d9f..d1187c9 100644
--- a/geneticone/backend/flags.py
+++ b/geneticone/backend/flags.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
-# File: geneticone/backend/flags.py
-# This file is part of the Genetic/One-Project, a graphical portage-frontend.
+# File: portato/backend/flags.py
+# This file is part of the Portato-Project, a graphical portage-frontend.
#
# Copyright (C) 2006 René 'Necoro' Neumann
# This is free software. You may redistribute copies of it under the terms of
@@ -14,7 +14,7 @@ import os
import os.path
from subprocess import Popen, PIPE # needed for grep
-from geneticone.helper import *
+from portato.helper import *
from portage_helper import split_package_name
import package
@@ -22,9 +22,9 @@ import portage
from portage_util import unique_array
CONFIG = {
- "usefile" : "geneticone",
- "maskfile" : "geneticone",
- "testingfile" : "geneticone",
+ "usefile" : "portato",
+ "maskfile" : "portato",
+ "testingfile" : "portato",
"usePerVersion" : True,
"maskPerVersion" : True,
"testingPerVersion" : True
@@ -263,7 +263,7 @@ def write_use_flags ():
# no more flags there - comment it out
if len(list) == 1 or list[1][0] in ("#","\n"):
list[0] = "#"+list[0]
- insert("#removed by geneticone#",list)
+ insert("#removed by portato#",list)
file_cache = {} # cache for having to read the file only once: name->[lines]
for cpv in newUseFlags:
@@ -309,7 +309,7 @@ def write_use_flags ():
if flagsToAdd:
# write new lines
- msg = "\n#geneticone update#\n"
+ msg = "\n#portato update#\n"
if CONFIG["usePerVersion"]: # add on a per-version-base
msg += "=%s %s\n" % (cpv, ' '.join(flagsToAdd))
else: # add on a per-package-base
@@ -440,7 +440,7 @@ def write_masked ():
line = int(line)
# add new line
if line == -1:
- msg = "\n#geneticone update#\n"
+ msg = "\n#portato update#\n"
if CONFIG["maskPerVersion"]:
msg += "=%s\n" % cpv
else:
@@ -464,7 +464,7 @@ def write_masked ():
i = i+1
# delete
l = f.readline()
- l = "#"+l[:-1]+" # removed by geneticone\n"
+ l = "#"+l[:-1]+" # removed by portato\n"
lines.append(l)
# read the rest
@@ -475,7 +475,7 @@ def write_masked ():
else: # in cache
l = file_cache[file][line-1]
# delete:
- l = "#"+l[:-1]+" # removed by geneticone\n"
+ l = "#"+l[:-1]+" # removed by portato\n"
file_cache[file][line-1] = l
@@ -570,7 +570,7 @@ def write_testing ():
line = int(line)
# add new line
if line == -1:
- msg = "\n#geneticone update#\n"
+ msg = "\n#portato update#\n"
if CONFIG["testingPerVersion"]:
msg += "=%s ~%s\n" % (cpv, arch)
else:
@@ -594,7 +594,7 @@ def write_testing ():
i = i+1
# delete
l = f.readline()
- l = "#"+l[:-1]+" # removed by geneticone\n"
+ l = "#"+l[:-1]+" # removed by portato\n"
lines.append(l)
# read the rest
@@ -605,7 +605,7 @@ def write_testing ():
else: # in cache
l = file_cache[file][line-1]
# delete:
- l = "#"+l[:-1]+" # removed by geneticone\n"
+ l = "#"+l[:-1]+" # removed by portato\n"
file_cache[file][line-1] = l
# write to disk
diff --git a/geneticone/backend/package.py b/geneticone/backend/package.py
index 212dffa..8b56eb5 100644
--- a/geneticone/backend/package.py
+++ b/geneticone/backend/package.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
-# File: geneticone/backend/package.py
-# This file is part of the Genetic/One-Project, a graphical portage-frontend.
+# File: portato/backend/package.py
+# This file is part of the Portato-Project, a graphical portage-frontend.
#
# Copyright (C) 2006 René 'Necoro' Neumann
# This is free software. You may redistribute copies of it under the terms of
@@ -10,8 +10,8 @@
#
# Written by René 'Necoro' Neumann <necoro@necoro.net>
-from geneticone.backend import *
-from geneticone.helper import *
+from portato.backend import *
+from portato.helper import *
from portage_helper import *
import flags
@@ -21,7 +21,7 @@ from portage_util import unique_array
import types
class Package (gentoolkit.Package):
- """This is a subclass of the gentoolkit.Package-class which a lot of additional functionality we need in Genetic/One."""
+ """This is a subclass of the gentoolkit.Package-class which a lot of additional functionality we need in Portato."""
def __init__ (self, cpv):
"""Constructor.
@@ -244,9 +244,9 @@ class Package (gentoolkit.Package):
@returns: list of cpvs on which the package depend
@rtype: string[]
- @raises geneticone.BlockedException: when a package in the dependency-list is blocked by an installed one
- @raises geneticone.PackageNotFoundException: when a package in the dependency list could not be found in the system
- @raises geneticone.DependencyCalcError: when an error occured during executing portage.dep_check()"""
+ @raises portato.BlockedException: when a package in the dependency-list is blocked by an installed one
+ @raises portato.PackageNotFoundException: when a package in the dependency list could not be found in the system
+ @raises portato.DependencyCalcError: when an error occured during executing portage.dep_check()"""
dep_pkgs = [] # the package list
diff --git a/geneticone/backend/portage_helper.py b/geneticone/backend/portage_helper.py
index 27f5a41..6e8fc84 100644
--- a/geneticone/backend/portage_helper.py
+++ b/geneticone/backend/portage_helper.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
-# File: geneticone/backend/portage_helper.py
-# This file is part of the Genetic/One-Project, a graphical portage-frontend.
+# File: portato/backend/portage_helper.py
+# This file is part of the Portato-Project, a graphical portage-frontend.
#
# Copyright (C) 2006 René 'Necoro' Neumann
# This is free software. You may redistribute copies of it under the terms of
@@ -15,10 +15,10 @@ import re, os, copy
import portage, gentoolkit
from portage_util import unique_array
-from geneticone.backend import *
+from portato.backend import *
import package
-from geneticone.helper import debug
+from portato.helper import debug
def find_lambda (name):
"""Returns the function needed by all the find_all_*-functions. Returns None if no name is given.