summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xunperish10
1 files changed, 10 insertions, 0 deletions
diff --git a/unperish b/unperish
index c6ea035..b34853f 100755
--- a/unperish
+++ b/unperish
@@ -137,6 +137,7 @@ class Unperish(cliapp.Application):
def process_args(self, args):
self.deduce_unset_settings()
self.deduce_vcs()
+ self.find_project_specific_settings()
self.create_build_area()
self.already = set()
@@ -190,6 +191,15 @@ class Unperish(cliapp.Application):
return
raise cliapp.AppException('Do not know this VCS, if any.')
+ def find_project_specific_settings(self):
+ cp = self.settings.as_cp()
+ section = 'project %s' % self.upstream_name
+ if cp.has_section(section):
+ for option in cp.options(section):
+ if cp.has_option('config', option):
+ value = cp.get(section, option)
+ self.settings.set_from_raw_string(option, value)
+
def create_build_area(self):
if not os.path.exists(self.settings['build-area']):
os.mkdir(self.settings['build-area'])