mirror of
				https://git.launchpad.net/livecd-rootfs
				synced 2025-10-31 08:54:06 +00:00 
			
		
		
		
	ubuntu-cpc: Allow comments in series files and add comments
The addition of disk-image to series files in a prior commit required some explanation. Without comment support in series files that was not possible. This patch adds support for comments and adds those comments as well.
This commit is contained in:
		
							parent
							
								
									00b995c7e2
								
							
						
					
					
						commit
						2fecd44890
					
				| @ -1,2 +1,3 @@ | ||||
| # Include disk-image to ensure livecd.ubuntu-cpc.ext4 is consistent | ||||
| depends disk-image | ||||
| base/create-root-dir.binary | ||||
|  | ||||
| @ -1,3 +1,4 @@ | ||||
| # Include disk-image to ensure livecd.ubuntu-cpc.ext4 is consistent | ||||
| depends disk-image | ||||
| depends root-dir | ||||
| base/root-squashfs.binary | ||||
|  | ||||
| @ -1,3 +1,4 @@ | ||||
| # Include disk-image to ensure livecd.ubuntu-cpc.ext4 is consistent | ||||
| depends disk-image | ||||
| depends root-dir | ||||
| base/root-xz.binary | ||||
|  | ||||
| @ -161,7 +161,7 @@ class MakeHooks: | ||||
|             with open(series_file, "r", encoding="utf-8") as fp: | ||||
|                 for line in fp: | ||||
|                     line = line.strip() | ||||
|                     if not line: | ||||
|                     if not line or line.startswith("#"): | ||||
|                         continue | ||||
|                     m = re.match(r"^\s*depends\s+(\S+.*)$", line) | ||||
|                     if m: | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user