Browse Source

Merge "AArch64 support: api, cli, controllers, drivers"

Jenkins 2 years ago
parent
commit
485618fd5f

+ 2
- 1
packetary/api/repositories.py View File

@@ -73,7 +73,8 @@ class RepositoryApi(object):
73 73
 
74 74
         :param config: the configuration
75 75
         :param repotype: the kind of repository(deb, yum, etc)
76
-        :param repoarch: the architecture of repository (x86_64 or i386)
76
+        :param repoarch: the architecture of repository
77
+                         (x86_64, i386 or aarch64)
77 78
         """
78 79
         context = config if isinstance(config, Context) else Context(config)
79 80
         return cls(RepositoryController.load(context, repotype, repoarch))

+ 1
- 1
packetary/cli/commands/base.py View File

@@ -56,7 +56,7 @@ class BaseRepoCommand(BaseCommand):
56 56
             '-a',
57 57
             '--arch',
58 58
             type=str,
59
-            choices=["x86_64", "i386"],
59
+            choices=["x86_64", "i386", "aarch64"],
60 60
             metavar='ARCHITECTURE',
61 61
             default="x86_64",
62 62
             help='The target architecture.')

+ 2
- 1
packetary/controllers/repository.py View File

@@ -45,7 +45,8 @@ class RepositoryController(object):
45 45
 
46 46
         :param context: the context
47 47
         :param driver_name: the name of required driver
48
-        :param repoarch: the architecture of repository (x86_64 or i386)
48
+        :param repoarch: the architecture of repository
49
+                         (x86_64, i386 or aarch64)
49 50
         """
50 51
         if cls._drivers is None:
51 52
             cls._drivers = stevedore.ExtensionManager(

+ 2
- 0
packetary/drivers/deb_driver.py View File

@@ -48,10 +48,12 @@ _OPERATORS_MAPPING = {
48 48
 }
49 49
 
50 50
 _ARCHITECTURES = {
51
+    "aarch64": "arm64",
51 52
     "x86_64": "amd64",
52 53
     "i386": "i386",
53 54
     "source": "Source",
54 55
     "amd64": "x86_64",
56
+    "arm64": "aarch64",
55 57
 }
56 58
 
57 59
 _PRIORITIES = {

Loading…
Cancel
Save