Browse Source

Merge "Support multi versions of package in fuel plugin"

Jenkins 2 years ago
parent
commit
e4bf931839
2 changed files with 4 additions and 4 deletions
  1. 2
    2
      fuel_plugin_builder/actions/build.py
  2. 2
    2
      fuel_plugin_builder/tests/test_build.py

+ 2
- 2
fuel_plugin_builder/actions/build.py View File

@@ -102,7 +102,7 @@ class BaseBuildPlugin(BaseAction):
102 102
     def build_ubuntu_repos(cls, releases_paths):
103 103
         for repo_path in releases_paths:
104 104
             utils.exec_piped_cmds(
105
-                ['dpkg-scanpackages .', 'gzip -c9 > Packages.gz'],
105
+                ['dpkg-scanpackages -m .', 'gzip -c9 > Packages.gz'],
106 106
                 cwd=repo_path)
107 107
 
108 108
     @classmethod
@@ -226,7 +226,7 @@ class BuildPluginV2(BaseBuildPlugin):
226 226
     def build_ubuntu_repos(self, releases_paths):
227 227
         for repo_path in releases_paths:
228 228
             utils.exec_piped_cmds(
229
-                ['dpkg-scanpackages .', 'gzip -c9 > Packages.gz'],
229
+                ['dpkg-scanpackages -m .', 'gzip -c9 > Packages.gz'],
230 230
                 cwd=repo_path)
231 231
             release_path = join_path(repo_path, 'Release')
232 232
             utils.render_to_file(

+ 2
- 2
fuel_plugin_builder/tests/test_build.py View File

@@ -106,7 +106,7 @@ class BaseBuild(BaseTestCase):
106 106
         path = '/repo/path'
107 107
         self.builder.build_ubuntu_repos([path])
108 108
         utils_mock.exec_piped_cmds.assert_called_once_with(
109
-            ['dpkg-scanpackages .', 'gzip -c9 > Packages.gz'],
109
+            ['dpkg-scanpackages -m .', 'gzip -c9 > Packages.gz'],
110 110
             cwd=path)
111 111
 
112 112
     @mock.patch('fuel_plugin_builder.actions.build.utils')
@@ -280,7 +280,7 @@ class TestBaseBuildV2(BaseBuild):
280 280
         path = '/repo/path'
281 281
         self.builder.build_ubuntu_repos([path])
282 282
         utils_mock.exec_piped_cmds.assert_called_once_with(
283
-            ['dpkg-scanpackages .', 'gzip -c9 > Packages.gz'],
283
+            ['dpkg-scanpackages -m .', 'gzip -c9 > Packages.gz'],
284 284
             cwd=path)
285 285
         release_src = os.path.abspath(join_path(
286 286
             os.path.dirname(__file__), '..',

Loading…
Cancel
Save