correct parameters in __package_luarocks
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
		
					parent
					
						
							
								aa53a3f221
							
						
					
				
			
			
				commit
				
					
						272c12e3f7
					
				
			
		
					 1 changed files with 12 additions and 0 deletions
				
			
		| 
						 | 
					@ -30,6 +30,18 @@ else
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
state_should="$(cat "$__object/parameter/state")"
 | 
					state_should="$(cat "$__object/parameter/state")"
 | 
				
			||||||
 | 
					# Correct pre 2.1 naming - FIXME in 2.1
 | 
				
			||||||
 | 
					case "$state_should" in
 | 
				
			||||||
 | 
					    installed)
 | 
				
			||||||
 | 
					        echo "WARNING: $state_should is deprecated and will be removed in cdist 2.1. Please change to present/absent." >&2
 | 
				
			||||||
 | 
					        state_should="present"
 | 
				
			||||||
 | 
					    ;;
 | 
				
			||||||
 | 
					    removed)
 | 
				
			||||||
 | 
					        echo "WARNING: $state_should is deprecated and will be removed in cdist 2.1. Please change to present/absent." >&2
 | 
				
			||||||
 | 
					        state_should="absent"
 | 
				
			||||||
 | 
					    ;;
 | 
				
			||||||
 | 
					esac
 | 
				
			||||||
 | 
					
 | 
				
			||||||
is_installed="$(grep "(installed)" "$__object/explorer/pkg_status" || true)"
 | 
					is_installed="$(grep "(installed)" "$__object/explorer/pkg_status" || true)"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
case "$state" in
 | 
					case "$state" in
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue