// WouldChangeState returns false if it's guaranteed that a call to Apply() wouldn't change the package installed, and true otherwise.
WouldChangeState returns false if it's guaranteed that a call to Apply() wouldn't change the package installed, and true otherwise.
// WouldChangeState returns false if it ' s guaranteed that a call to Apply () wouldn ' t change the package installed and true otherwise .
func (d *Deb) WouldChangeState(r plan.Runner) (bool, error) {
	current, err := d.QueryState(r)
	if err != nil {
		return false, err
	}
	return !current.Equal(d.State()), nil
}
func ( d * Deb ) WouldChangeState ( r plan . Runner ) ( bool , error ) { current , err := d . QueryState ( r ) if err != nil { return false , err } return ! current . Equal ( d . State ( ) ) , nil }
WouldChangeState returns false if it's guaranteed that a call to Apply() wouldn't change the package installed, and true otherwise.
WouldChangeState returns false if it ' s guaranteed that a call to Apply () wouldn ' t change the package installed and true otherwise .