Modified __package to allow pkgsite param, bugfix in __package_pkg_freebsd where it wasn't setting the PACKAGESITE variable on remote side.
This commit is contained in:
		
					parent
					
						
							
								5443d1a64a
							
						
					
				
			
			
				commit
				
					
						b7e3378262
					
				
			
		
					 2 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,4 @@
 | 
			
		|||
name
 | 
			
		||||
version
 | 
			
		||||
type
 | 
			
		||||
pkgsite
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -77,6 +77,7 @@ execcmd(){
 | 
			
		|||
	# Set the PACKAGESITE if we're ADDing a new package
 | 
			
		||||
	if [ "$1" = "add" -a -n "$pkgsite" ]; then
 | 
			
		||||
		# Use http.../All/ if we know the exact version we want, use .../Latest/ otherwise
 | 
			
		||||
		pkgsite="export PACKAGESITE=${pkgsite}"
 | 
			
		||||
		[ -n "$version" ] && pkgsite="${pkgsite}/All/" || pkgsite="${pkgsite}/Latest/"
 | 
			
		||||
		echo "${pkgsite}"
 | 
			
		||||
	fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue