~armagetronad-dev/armagetronad/0.2.8-armagetronad-work

« back to all changes in this revision

Viewing changes to docker/deploy/lp-project-upload

  • Committer: Manuel Moos
  • Date: 2020-08-02 13:25:04 UTC
  • mfrom: (1166.7.31 master)
  • mto: This revision was merged to the branch mainline in revision 1629.
  • Revision ID: z-man@users.sf.net-20200802132504-x24fuq64wt4fhc09
Merge from legacy_0.2.8.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
 
133
133
        if extension == ".tbz":
134
134
            mime_type="application/bzip2"
135
 
            if "_client_32_" in fn:
 
135
            if "_32_" in fn:
136
136
                description="Client Linux 32 Bit Tarball for Zero Install"
137
 
            elif "_server_32_" in fn:
138
 
                description="Server Linux 32 Bit Tarball for Zero Install"
139
 
            elif "_client_64_" in fn:
 
137
            elif "_64_" in fn:
140
138
                description="Client Linux 64 Bit Tarball for Zero Install"
141
 
            elif "_server_64_" in fn:
142
 
                description="Server Linux 64 Bit Tarball for Zero Install"
143
139
            else:
144
140
                file_type="Code Release Tarball"
145
141
                description="Source"
146
142
        else:
147
 
            if fn == "PATCHNOTES.md":
 
143
            if fn == "CHANGELOG.txt":
148
144
                file_type="Release Notes"
149
145
                description="Patch Notes"
150
146
            if fn == "CHANGELOG.md":
151
147
                file_type="ChangeLog File"
152
148
                description="Changelog"
153
149
            if extension == ".AppImage":
154
 
                description="AppImage for Linux"
 
150
                description="Client AppImage for Linux"
155
151
                Linux=True
156
152
            if extension == ".deb":
157
 
                description="Debian Package"
 
153
                description="Client Debian Package"
158
154
                Linux=True
159
155
            if extension == ".dmg":
160
 
                description="OSX Disk Image"
 
156
                description="Client OSX Disk Image"
161
157
                mime_type="application/x-apple-diskimage"
162
158
                Mac=True
163
159
            if extension == ".exe":
164
 
                description="Windows Installer"
 
160
                description="Client Windows Installer"
165
161
                mime_type="application/exe"
166
162
                Windows=True
167
163
            if extension == ".zip":
178
174
                else:
179
175
                    description = description.replace("Linux", "64 bit Linux")
180
176
            if "edicated" in filename or "server" in filename:
181
 
                description="Server " + description
182
 
            else:
183
 
                if "common" in filename and extension == ".deb":
184
 
                    description="Common " + description
185
 
                else:
186
 
                    description="Client " + description
 
177
                description=description.replace("Client ", "Server ")
187
178
 
188
179
        print (filename,description,mime_type,file_type)
189
180
 
243
234
                    series.newMilestone(name=new_milestone)
244
235
 
245
236
    except HTTPError, error:
246
 
        print 'An error happened in the upload:', error.content
 
237
        print('An error happened in the upload:', error.content, error)
247
238
        sys.exit(1)
248
239
 
249
240
if __name__ == '__main__':