transformations: Let users know when '--with-latest' has no effect.
* guix/transformations.scm (package-with-upstream-version): Print a message when VERSION is false and SOURCE has the same version as P.
This commit is contained in:
		
							parent
							
								
									137b91f03b
								
							
						
					
					
						commit
						20c923c40d
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -772,6 +772,9 @@ is #f, the latest known upstream version."
 | 
				
			||||||
           p)
 | 
					           p)
 | 
				
			||||||
          ((string=? (upstream-source-version source)
 | 
					          ((string=? (upstream-source-version source)
 | 
				
			||||||
                     (package-version p))
 | 
					                     (package-version p))
 | 
				
			||||||
 | 
					           (unless version
 | 
				
			||||||
 | 
					             (info (G_ "~a is already the latest version of '~a'~%")
 | 
				
			||||||
 | 
					                   (package-version p) (package-name p)))
 | 
				
			||||||
           p)
 | 
					           p)
 | 
				
			||||||
          (else
 | 
					          (else
 | 
				
			||||||
           (when (version>? (package-version p)
 | 
					           (when (version>? (package-version p)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue