[packagedb-cli] Bump release and remove some trailing space, replace some tabs by spaces
by Pierre-YvesChibon
commit 1d17a093b9e0328db2777f48db2c9498aa78234a
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Sep 5 12:04:24 2013 +0200
Bump release and remove some trailing space, replace some tabs by spaces
README | 6 +++---
pkgdb-cli | 2 +-
setup.py | 6 +++---
3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/README b/README
index 0242340..0d7360f 100644
--- a/README
+++ b/README
@@ -4,8 +4,8 @@ Fedora PackageDB-cli
:Author: Pierre-Yves Chibon
:Contact: pingou(a)fedoraproject.org
-:Date: Thu 21 Feb, 2013
-:Version: 1.5.1
+:Date: Thu Sep 05, 2013
+:Version: 1.6.0
The `PackageDB-cli` is a commande line interface to the PackageDB of Fedora.
@@ -17,7 +17,7 @@ Project
The `PackageDB-cli` was started in May of 2011 to allow user to consult the
package collection and to manage their Access Control List (ACL) using a simple
-interface web free interface.
+interface web free interface.
.. _`PackageDB-cli`: https://fedorahosted.org/packagedb-cli
diff --git a/pkgdb-cli b/pkgdb-cli
index 0a207ac..9444af1 100755
--- a/pkgdb-cli
+++ b/pkgdb-cli
@@ -25,7 +25,7 @@ import sys
import re
import fedora_cert
-version = '1.5.1'
+version = '1.6.0'
kojiclient = koji.ClientSession('http://koji.fedoraproject.org/kojihub',
{})
pkgdbclient = PackageDB('https://admin.fedoraproject.org/pkgdb')
diff --git a/setup.py b/setup.py
index c429c70..9ca26c8 100644
--- a/setup.py
+++ b/setup.py
@@ -8,11 +8,11 @@ from distutils.core import setup
setup(
name = 'packagedb-cli',
description = 'A command line tool to access the Fedora Package Database.',
- version = '1.5.1',
+ version = '1.6.0',
license = 'GPLv2+',
download_url = 'https://fedorahosted.org/releases/p/a/packagedb-cli/',
url = 'https://fedorahosted.org/packagedb-cli/',
scripts=['pkgdb-cli'],
- author='Pierre-Yves Chibon',
- author_email='pingou(a)pingoured.fr',
+ author='Pierre-Yves Chibon',
+ author_email='pingou(a)pingoured.fr',
)
10 years, 8 months
[packagedb-cli] Created tag v1.5.1
by Pierre-YvesChibon
The unsigned tag 'v1.5.1' was created.
Tagger: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Sep 5 11:14:58 2013 +0200
Release 1.5.1
Changes since the last tag 'v1.5.0':
Pierre-Yves Chibon (3):
Handle potential race condition b/w pkgdbclient and fasclient
Bump version to 1.5.1
Bump release in the setup.py
10 years, 8 months
[packagedb-cli] Bump release in the setup.py
by Pierre-YvesChibon
commit 70a4deca6c59b176391ab8e6de115caaa2682298
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Sep 5 11:14:07 2013 +0200
Bump release in the setup.py
setup.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/setup.py b/setup.py
index a5cbe25..c429c70 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ from distutils.core import setup
setup(
name = 'packagedb-cli',
description = 'A command line tool to access the Fedora Package Database.',
- version = '1.5.0',
+ version = '1.5.1',
license = 'GPLv2+',
download_url = 'https://fedorahosted.org/releases/p/a/packagedb-cli/',
url = 'https://fedorahosted.org/packagedb-cli/',
10 years, 8 months
[packagedb-cli: 2/2] Bump version to 1.5.1
by Pierre-YvesChibon
commit bbf8dbca71267bbbb369236707ccb49fd02558ab
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Sep 5 11:10:04 2013 +0200
Bump version to 1.5.1
README | 2 +-
pkgdb-cli | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/README b/README
index f94b1e7..0242340 100644
--- a/README
+++ b/README
@@ -5,7 +5,7 @@ Fedora PackageDB-cli
:Author: Pierre-Yves Chibon
:Contact: pingou(a)fedoraproject.org
:Date: Thu 21 Feb, 2013
-:Version: 1.4.x
+:Version: 1.5.1
The `PackageDB-cli` is a commande line interface to the PackageDB of Fedora.
diff --git a/pkgdb-cli b/pkgdb-cli
index 97d183d..0a207ac 100755
--- a/pkgdb-cli
+++ b/pkgdb-cli
@@ -25,7 +25,7 @@ import sys
import re
import fedora_cert
-version = '1.5.0'
+version = '1.5.1'
kojiclient = koji.ClientSession('http://koji.fedoraproject.org/kojihub',
{})
pkgdbclient = PackageDB('https://admin.fedoraproject.org/pkgdb')
10 years, 8 months
[packagedb-cli: 1/2] Handle potential race condition b/w pkgdbclient and fasclient
by Pierre-YvesChibon
commit 121a6991754acca34ce8ee266ccc1cfc99027b3b
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Sep 5 10:14:57 2013 +0200
Handle potential race condition b/w pkgdbclient and fasclient
This race condition was giving problems with authentication, such as RHBZ#995430.
Fix from Toshio Kuratomi <a.badger(a)gmail.com>
pkgdb-cli | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/pkgdb-cli b/pkgdb-cli
index 61f3a71..97d183d 100755
--- a/pkgdb-cli
+++ b/pkgdb-cli
@@ -89,15 +89,23 @@ def _get_client_authentified(username=None, password=None):
username = raw_input('FAS username: ')
pkgdbclient.username = username
if password is None:
+ require_password = True
if pkgdbclient.session_id:
fasclient.username = username
# Really wish there was a better way to verify that a
# session_id is not expired
try:
discard = fasclient.send_request('/home', auth=True)
+ require_password = False
except AuthError:
- password = getpass.getpass('FAS password: ')
- pkgdbclient.password = password
+ pass
+ else:
+ # handle potential race condition between creation of
+ # pkgdbclient and creation of fasclient
+ pkgdbclient.session_id = fasclient.session_id
+ if require_password:
+ password = getpass.getpass('FAS password: ')
+ pkgdbclient.password = password
def _get_group_info(group, statusmap, tmpstring="", pending=False):
10 years, 8 months
[packagedb-cli] Handle potential race condition b/w pkgdbclient and fasclient
by Pierre-YvesChibon
commit 59ab3cfa762feb513e6bd51562a7e2aba6e9a58e
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Sep 5 10:14:57 2013 +0200
Handle potential race condition b/w pkgdbclient and fasclient
This race condition was giving problems with authentication, such as RHBZ#995430.
pkgdb-cli | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/pkgdb-cli b/pkgdb-cli
index 61f3a71..97d183d 100755
--- a/pkgdb-cli
+++ b/pkgdb-cli
@@ -89,15 +89,23 @@ def _get_client_authentified(username=None, password=None):
username = raw_input('FAS username: ')
pkgdbclient.username = username
if password is None:
+ require_password = True
if pkgdbclient.session_id:
fasclient.username = username
# Really wish there was a better way to verify that a
# session_id is not expired
try:
discard = fasclient.send_request('/home', auth=True)
+ require_password = False
except AuthError:
- password = getpass.getpass('FAS password: ')
- pkgdbclient.password = password
+ pass
+ else:
+ # handle potential race condition between creation of
+ # pkgdbclient and creation of fasclient
+ pkgdbclient.session_id = fasclient.session_id
+ if require_password:
+ password = getpass.getpass('FAS password: ')
+ pkgdbclient.password = password
def _get_group_info(group, statusmap, tmpstring="", pending=False):
10 years, 8 months