Skip to content

Commit

Permalink
Use ordereddict to properly sort packages
Browse files Browse the repository at this point in the history
  • Loading branch information
David Moreau Simard committed Sep 29, 2015
1 parent 1be6470 commit 7832c6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion versiontracker/api/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.

import collections
import configparser
import dnf
import io
Expand All @@ -23,7 +24,7 @@

class Packages(Resource):
def get(self, repository, package=None, property=None):
packages = {}
packages = collections.OrderedDict()
try:
repository_packages = _get_packages_from_repo(repository)
except KeyError as e:
Expand Down

0 comments on commit 7832c6c

Please sign in to comment.