Something right here could be:
```puppet
  if $package_name {
    warning('Using $package_name has been deprecated in favor of $client_package_name and will be removed.')
    $client_package_name_real = $package_name
  } else {
    $client_package_name_real = $client_package_name
  }
```