From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 59F9C139082 for ; Thu, 16 Feb 2017 03:09:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 73E03E0C2D; Thu, 16 Feb 2017 03:09:32 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 52355E0C21 for ; Thu, 16 Feb 2017 03:09:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3F604341586 for ; Thu, 16 Feb 2017 03:09:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A12D24961 for ; Thu, 16 Feb 2017 03:09:29 +0000 (UTC) From: "Devan Franchini" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Devan Franchini" Message-ID: <1487214225.af52e7cfec44828b3722f484f3ed4c0ee4fd22d8.twitch153@gentoo> Subject: [gentoo-commits] proj/webapp-config:master commit in: WebappConfig/ X-VCS-Repository: proj/webapp-config X-VCS-Files: WebappConfig/server.py X-VCS-Directories: WebappConfig/ X-VCS-Committer: twitch153 X-VCS-Committer-Name: Devan Franchini X-VCS-Revision: af52e7cfec44828b3722f484f3ed4c0ee4fd22d8 X-VCS-Branch: master Date: Thu, 16 Feb 2017 03:09:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 0c3ca4be-9479-49b6-b550-b43193a55bfe X-Archives-Hash: 9597740eeb868ceee3887db91d1e3710 commit: af52e7cfec44828b3722f484f3ed4c0ee4fd22d8 Author: Devan Franchini gentoo org> AuthorDate: Thu Feb 16 03:02:44 2017 +0000 Commit: Devan Franchini gentoo org> CommitDate: Thu Feb 16 03:03:45 2017 +0000 URL: https://gitweb.gentoo.org/proj/webapp-config.git/commit/?id=af52e7cf server.py: Uses EPREFIX variable X-Gentoo-Bug: 608018 X-Gentoo-Bug-URL: https://bugs.gentoo.org/608018 WebappConfig/server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WebappConfig/server.py b/WebappConfig/server.py index ec9c141..4c3b571 100644 --- a/WebappConfig/server.py +++ b/WebappConfig/server.py @@ -22,6 +22,7 @@ import os, os.path from WebappConfig.debug import OUT +from WebappConfig.eprefix import EPREFIX from WebappConfig.worker import WebappRemove, WebappAdd from WebappConfig.permissions import get_group, get_user @@ -195,7 +196,7 @@ class Basic: dir = self.__destd dirs = [] - while dir != '/': + while dir != EPREFIX + '/': dirs.insert(0, dir) dir = os.path.dirname(dir)