@@ -84,20 +84,19 @@ def rustup_version():
84
84
print ('{}_VER="{}"' .format (prefix , PACKAGES [prefix ]))
85
85
86
86
# Update Dockerfiles
87
- for arch in ["x86_64" , "arm64" ]:
88
- fname = f'./Dockerfile.{ arch } '
89
- # Open a different file for the destination to update Dockerfile atomically
90
- src = open (fname , 'r' )
91
- dst = open (f'{ fname } .new' , 'w' )
92
-
93
- # Iterate over each line in Dockerfile, replacing any *_VER variables with the most recent version
94
- for line in src :
95
- for prefix in PACKAGES :
96
- version = PACKAGES [prefix ]
97
- line = re .sub (r'({}_VER=)\S+' .format (prefix ), r'\1"{}"' .format (version ), line )
98
- dst .write (line )
99
-
100
- # Close original and new Dockerfile then overwrite the old with the new
101
- src .close ()
102
- dst .close ()
103
- os .rename (f'{ fname } .new' , fname )
87
+ fname = './Dockerfile'
88
+ # Open a different file for the destination to update Dockerfile atomically
89
+ src = open (fname , 'r' )
90
+ dst = open (f'{ fname } .new' , 'w' )
91
+
92
+ # Iterate over each line in Dockerfile, replacing any *_VER variables with the most recent version
93
+ for line in src :
94
+ for prefix in PACKAGES :
95
+ version = PACKAGES [prefix ]
96
+ line = re .sub (r'({}_VER=)\S+' .format (prefix ), r'\1"{}"' .format (version ), line )
97
+ dst .write (line )
98
+
99
+ # Close original and new Dockerfile then overwrite the old with the new
100
+ src .close ()
101
+ dst .close ()
102
+ os .rename (f'{ fname } .new' , fname )
0 commit comments