From 9c1ea04fee903290f9c0a0d8f9aa0e921ebb610f Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Sun, 20 Nov 2022 13:15:06 -0700 Subject: [PATCH] fix filetype issues with images --- iso/empanadas/empanadas/configs/.el9.yaml.swp | Bin 0 -> 16384 bytes iso/empanadas/empanadas/util/iso_utils.py | 10 ++++++---- 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 iso/empanadas/empanadas/configs/.el9.yaml.swp diff --git a/iso/empanadas/empanadas/configs/.el9.yaml.swp b/iso/empanadas/empanadas/configs/.el9.yaml.swp new file mode 100644 index 0000000000000000000000000000000000000000..6d6b013878048d60ed591366857032dca13b5eb1 GIT binary patch literal 16384 zcmeI2dx#`Q9mmV_;v?~L61{&Cg^oe@k6h2p?R)2lFgLe%x8A;-eP}pjuBN-Dw{Cj6 z`>K0pXHU35Ac~+wVjv-c_=tb`hY1+TAN~=zh(Zno$sbA#BBJ=05+4`E6a7~8V|se` zHn(tsU^RSpx?aDk`qpEss;gDmTv#&ZN)>|VgM>VBW5=?Oy+Ib*cM+Gim@EC?;R&h7 zOVo3i8~Sa_^{vjfFFGZUMWYF?DuZQ*N9B+^Wy=?=9QnT6fd>!$GV2D^qc#n5Zm zKr5gX_&-u03J#ISP~SsIou5m7-&Od1cjCS;`Tcq!JaOtDt$UI#x0FMwykmp~s}1fK>c!6(2y;IH=(@_X=e@FVbT@HKE1w7~_i z3{HZNgCpSYcN6j&_#t>6d>Qn?1~>se3ho7mz~A0a$ZxGC_#~JF z4}qiLF!&4l)~~_q;2QWocp9iaC&z@Lp0(QQx!Q8Anm7%^G|q8ntJbF+7e~0uqn%t( zEeO^k!Du(j#U@LR5iy(OTpS>aYVPF6wZg#P!Ch zeEboSGF8$TacI@J@VP`roAsHSxdjXSFpV2d%vAo1QFKNPJTZ1?Q-R!R&N%mx0(bO+V_Q(U$9bX&9fL zozC8;a_^J5_le#L98vVNHqoBZU)E^72JxVAgq?<&8d>W z^{O40d%Z!)7fx9@%R$d`xEa5jWuz>NxpFLZOHj{}M#Nm~p==}51KKSioixy=f>STb ziYkZcSQ2L7fh*YQaH|tWRHzh*Z=ZL~F86qsx@jjsTo;33V7gt)^!z?g69{&>#|5*S zLC49un`tDiiBiNibm|m5)6fvQI=}!^HoFXV!FJ~%r1>ssS~OshH?J%XlTdI z1%CESeKd5?wsOIr!4)@DG2*^wF7gOHIhT#R|CR<~-r76atx}}r>x7ss#7^8JZo3&- z*j60_H|(0~hF#VcVcLXJiCp_-Z5m>jFY=abhU3O&%OBwH(l!+=oeK;D1051p4Fo0{ zZc+z5EK28uVU)|3zdfErTB+ye;?xGZX=!jJiP2bH7@A1>m@JQ+kB%ElalbikY@Axy zT^MwEsd-!Xa6uqeB=L`saNiwq{?8}gts!G{6~!#M$XLs z#ez~{hX++-UGx}{aphz4(5f0|s2iq!aR$TE^nKT(UCdl#cHd45pRa#mx|UYa?8R~_ z&s|XqrQffNxnd_~hGo1nitW*Au{^n~p+Rvl7zT>nbmJA!P|0L0v@t&=>1DKRMwKv7y z$V{=4!)mA3g-5tW$ET*HCuW+SkabVjZtw^Ti#Hh$-7t!%gNV4{o>ZaD)xuagF(6b{ zCuCTfuL=>C+m{(M>fRVFM^1?8DbqHX8N$wQ^&1$vnGy);vG| zsHwJp=A60C!iam0+%C#z|JZxPT3o2lFR#t-5i-BASlh$9zOuBmvAnSUs98T(Ypl;V z_KJf8TftjBd=^X2H(czA(-R<^E6O5cS9^ep;pn}kw$S^eiA&-HPMp);=j*ri2?n`2 zC}KGjR{S}}6wGBfVJ;Uw#oXSPms^@kkMGq{P*WZfWS>T4TNaOTh-zci%-P{h&M!X2 GBmV)KvFOSG literal 0 HcmV?d00001 diff --git a/iso/empanadas/empanadas/util/iso_utils.py b/iso/empanadas/empanadas/util/iso_utils.py index 22501b4..bd9902d 100644 --- a/iso/empanadas/empanadas/util/iso_utils.py +++ b/iso/empanadas/empanadas/util/iso_utils.py @@ -1372,6 +1372,7 @@ class IsoBuild: latest_artifacts[name] = {} primary_variant = extra['primary_variant'] if 'primary_variant' in extra else None latest_artifacts[name]['primary'] = primary_variant + latest_artifacts[name]['formattype'] = formattype variants = extra['variants'] if 'variants' in extra.keys() else [None] # need to loop once imagename = name @@ -1413,6 +1414,7 @@ class IsoBuild: #print(latest_artifacts) for keyname in latest_artifacts.keys(): primary = latest_artifacts[keyname]['primary'] + filetype = latest_artifacts[keyname]['formattype'] for imgname in latest_artifacts[keyname]: keysect = latest_artifacts[keyname][imgname] if imgname == 'primary': @@ -1491,7 +1493,7 @@ class IsoBuild: self.major_version, imgname, arch, - formattype + filetype ) latest_path = latest_name.split('/')[-1] latest_checksum = '{}/{}-{}-{}.latest.{}.{}.CHECKSUM'.format( @@ -1500,7 +1502,7 @@ class IsoBuild: self.major_version, imgname, arch, - formattype + filetype ) # For some reason python doesn't have a "yeah just change this # link" part of the function @@ -1530,7 +1532,7 @@ class IsoBuild: self.major_version, keyname, arch, - formattype + filetype ) latest_primary_checksum = '{}/{}-{}-{}.latest.{}.{}.CHECKSUM'.format( image_arch_dir, @@ -1538,7 +1540,7 @@ class IsoBuild: self.major_version, keyname, arch, - formattype + filetype ) latest_primary_path = latest_primary_name.split('/')[-1]