[createrepo-wrapper] Fix --deltas argument
There is no value, the flag is there or it is not there. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
		
							parent
							
								
									c93772ade8
								
							
						
					
					
						commit
						d619f14dbf
					
				| @ -107,7 +107,7 @@ class CreaterepoWrapper(object): | |||||||
|             cmd.append("--revision=%s" % revision) |             cmd.append("--revision=%s" % revision) | ||||||
| 
 | 
 | ||||||
|         if deltas: |         if deltas: | ||||||
|             cmd.append("--deltas=%s" % deltas) |             cmd.append("--deltas") | ||||||
| 
 | 
 | ||||||
|         if oldpackagedirs: |         if oldpackagedirs: | ||||||
|             for i in force_list(oldpackagedirs): |             for i in force_list(oldpackagedirs): | ||||||
|  | |||||||
| @ -39,7 +39,7 @@ class CreateRepoWrapperTest(unittest.TestCase): | |||||||
|                                '--skip-stat', '--update-md-path=/test/md_path', '--split', '--checkts', |                                '--skip-stat', '--update-md-path=/test/md_path', '--split', '--checkts', | ||||||
|                                '--checksum=sha256', '--distro=Fedora', '--simple-md-filenames', '--no-database', |                                '--checksum=sha256', '--distro=Fedora', '--simple-md-filenames', '--no-database', | ||||||
|                                '--content=c1', '--content=c2', '--repo=r1', '--repo=r2', '--revision=rev', |                                '--content=c1', '--content=c2', '--repo=r1', '--repo=r2', '--revision=rev', | ||||||
|                                '--deltas=True', '--oldpackagedirs=/test/old', '--num-deltas=2', '--workers=3', |                                '--deltas', '--oldpackagedirs=/test/old', '--num-deltas=2', '--workers=3', | ||||||
|                                '--outputdir=/test/output']) |                                '--outputdir=/test/output']) | ||||||
| 
 | 
 | ||||||
|     def test_get_createrepo_cmd_minimal(self): |     def test_get_createrepo_cmd_minimal(self): | ||||||
| @ -68,5 +68,5 @@ class CreateRepoWrapperTest(unittest.TestCase): | |||||||
|                                '--skip-stat', '--update-md-path=/test/md_path', '--split', '--checkts', |                                '--skip-stat', '--update-md-path=/test/md_path', '--split', '--checkts', | ||||||
|                                '--checksum=sha256', '--distro=Fedora', '--simple-md-filenames', '--no-database', |                                '--checksum=sha256', '--distro=Fedora', '--simple-md-filenames', '--no-database', | ||||||
|                                '--content=c1', '--content=c2', '--repo=r1', '--repo=r2', '--revision=rev', |                                '--content=c1', '--content=c2', '--repo=r1', '--repo=r2', '--revision=rev', | ||||||
|                                '--deltas=True', '--oldpackagedirs=/test/old', '--num-deltas=2', '--workers=3', |                                '--deltas', '--oldpackagedirs=/test/old', '--num-deltas=2', '--workers=3', | ||||||
|                                '--outputdir=/test/output']) |                                '--outputdir=/test/output']) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user