# Path: arch/models.py
# class PackageArchitecture(Architecture):
# 
#     class Meta(Architecture.Meta):
#         verbose_name = 'Package Architecture'
# 
# class MachineArchitecture(Architecture):
# 
#     class Meta(Architecture.Meta):
#         verbose_name = 'Machine Architecture'
# 
# Path: packages/managers.py
# class PackageManager(models.Manager):
#     def get_queryset(self):
#         return super(PackageManager, self).get_queryset().select_related()


from django.db import models
from django.urls import reverse
    from version_utils.rpm import labelCompare
    from rpm import labelCompare
from debian.debian_support import Version, version_compare
from arch.models import PackageArchitecture, MachineArchitecture
from packages.managers import PackageManager
        from repos.models import Repository
    from operatingsystems.models import OSGroup
# This file is part of Patchman.
#
# Patchman is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 only.
#
# Patchman is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Patchman. If not, see <http://www.gnu.org/licenses/>


try:
except ImportError:



class PackageName(models.Model):

    name = models.CharField(unique=True, max_length=255)

    class Meta(object):
        verbose_name = 'Package'
        verbose_name_plural = 'Packages'
        ordering = ('name',)

    def __str__(self):

# Path: arch/models.py
# class PackageArchitecture(Architecture):
# 
#     class Meta(Architecture.Meta):
#         verbose_name = 'Package Architecture'
# 
# class MachineArchitecture(Architecture):
# 
#     class Meta(Architecture.Meta):
#         verbose_name = 'Machine Architecture'
# 
# Path: packages/managers.py
# class PackageManager(models.Manager):
#     def get_queryset(self):
#         return super(PackageManager, self).get_queryset().select_related()


# Path: packages/models.py
from django.db import models
from django.urls import reverse
    from version_utils.rpm import labelCompare
    from rpm import labelCompare
from debian.debian_support import Version, version_compare
from arch.models import PackageArchitecture, MachineArchitecture
from packages.managers import PackageManager
        from repos.models import Repository
    from operatingsystems.models import OSGroup

# This file is part of Patchman.
#
# Patchman is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 only.
#
# Patchman is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Patchman. If not, see <http://www.gnu.org/licenses/>


try:
except ImportError:



class PackageName(models.Model):

    name = models.CharField(unique=True, max_length=255)

    class Meta(object):
        verbose_name = 'Package'
        verbose_name_plural = 'Packages'
        ordering = ('name',)

    def __str__(self):

        return self.name