lib/d3/package/server_actions.rb in depot3-3.0.15 vs lib/d3/package/server_actions.rb in depot3-3.0.20
- old
+ new
@@ -533,14 +533,13 @@
def upload_master_file (local_file_path, rw_pw, unmount = true)
raise JSS::NoSuchItemError, "Please create this package in d3 before uploading it." unless @in_d3
if local_file_path.to_s =~ PKG_RE
@apple_receipt_data = D3::Package.receipt_data_from_pkg(local_file_path)
@need_to_update_d3 = true
- self.save
end # if local_file_path.to_s =~ PKG_RE
-
super
+ update
end
### Create, or re-create, the BOM index records for this
### Package in the JSS Database.
###
@@ -613,10 +612,10 @@
system "/usr/bin/hdiutil detach '#{mnt_point}'"
system "rm -rf '#{tmp_bom}'"
else
- raise JSS::InvalidDataError, "#{@filename} is doesn't looks like a .pkg or .dmg. Try Casper Admin to index it."
+ raise JSS::InvalidDataError, "#{@filename} doesn't looks like a .pkg or .dmg. Try Casper Admin to index it."
end # if filename .pkg
# If there are no bomlines (perhaps a payloadless pkg?) just return
return true if bom_lines.empty?