bin/d3helper in depot3-3.0.22 vs bin/d3helper in depot3-3.0.26
- old
+ new
@@ -305,10 +305,10 @@
# If we're here, we need to import the receipt, so get the matching D3
# package and make a receipt from it.
D3.log "Importing Jamf Pro Receipt #{jss_rcpt_name}", :warn
begin
- d3_pkg = D3::Package.new id: pkg_id
+ d3_pkg = D3::Package.fetch id: pkg_id
# do we already have a rcpt for the package's basename? if so,
# delete it - we can only have on rcpt per basename
if D3::Client::Receipt.all(:refresh).keys.include? d3_pkg.basename