[copr] master: copr is noarch package (f7f0344)

msuchy at fedoraproject.org msuchy at fedoraproject.org
Wed Jun 19 07:43:41 UTC 2013


Repository : http://git.fedorahosted.org/cgit/copr.git

On branch  : master

>---------------------------------------------------------------

commit f7f034466a809b307a848cc67131eb39f61fbb4d
Author: Miroslav Suchý <msuchy at redhat.com>
Date:   Wed Jun 19 08:37:54 2013 +0200

    copr is noarch package


>---------------------------------------------------------------

 copr.spec                      |    1 +
 coprs_frontend/coprs/config.py |    3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/copr.spec b/copr.spec
index 41788e1..aa192e2 100644
--- a/copr.spec
+++ b/copr.spec
@@ -8,6 +8,7 @@ License:	GPLv2+
 URL:		https://fedorahosted.org/copr/
 Source0:	%{name}-%{version}.tar.gz
 
+BuildArch:  noarch
 BuildRequires: asciidoc
 BuildRequires: libxslt
 BuildRequires: util-linux
diff --git a/coprs_frontend/coprs/config.py b/coprs_frontend/coprs/config.py
index e6f3c78..1b735e4 100644
--- a/coprs_frontend/coprs/config.py
+++ b/coprs_frontend/coprs/config.py
@@ -19,6 +19,9 @@ class Config(object):
     # Token length, defaults to 30, DB set to varchar 255
     API_TOKEN_LENGTH = 30
 
+    # Expiration of API token in days
+    API_TOKEN_EXPIRATION = 180
+
     # logging options
     SEND_LOGS_TO = []
     LOGGING_LEVEL = logging.ERROR



More information about the copr-devel mailing list