Skip to content
This repository was archived by the owner on Aug 4, 2018. It is now read-only.

Commit

Permalink
Merge branch 'pr/7'
Browse files Browse the repository at this point in the history
  • Loading branch information
Fingercomp committed Oct 29, 2016
2 parents b27bc50 + 845b478 commit f64ba84
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2.0.1
-----
- Fixed a bug when version details could contain only some of required fields.

2.0.0
-----
- Change the response of ``Packages:GET``.
Expand Down
2 changes: 1 addition & 1 deletion hel/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json


VERSION = '2.0.0'
VERSION = '2.0.1'


def parse_search_phrase(s):
Expand Down
11 changes: 11 additions & 0 deletions hel/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,17 @@ def update_package(context, request):
'files' not in ver or
'changes' not in ver):
jexc(HTTPBadRequest, Messages.partial_ver)
else:
if k not in query:
query[k] = {}
if num not in query[k]:
query[k][num] = {}
if 'files' not in query[k][num]:
query[k][num]['files'] = {}
if 'depends' not in query[k][num]:
query[k][num]['depends'] = {}
if 'changes' not in query[k][num]:
query[k][num]['changes'] = ""
if 'files' in ver:
check(
ver['files'], dict,
Expand Down

0 comments on commit f64ba84

Please sign in to comment.