Some uncompressed tarballs with translations not recognized

Bug #518010 reported by Alexander Belchenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

I'm maintainer of QBzr project (lp:qbzr). I want to upload translations from trunk to 0.18 stable series of qbzr via page: https://translations.launchpad.net/qbzr/0.18/+translations-upload. But I can't upload translations as tar file.

Usually we don't do translations directly but always export all translations from launchpad itself. Then I'm unpacking translations from tar.gz and store them in po directory in our source tree. I don't rename the files exported, so they have following names:

qbzr.pot -- template

qbzr-en_GB.po -- translation for UK, and so on.

Today I simply packed those files into tar file and trying to import them. Upload was refused with message: "Upload ignored. The tarball you uploaded did not contain any files that the system recognized as translation files."

I've read the example of directory layout via https://translations.launchpad.net/+help/directory-example.html and then copy all my files to qbzr directory and tar it again. Upload failed with the same message as above.

I've attached my tar file, please explain me what I'm doing wrong.

Also I want to note that file name conventions for export and import are different. You're exporting files where name of templae used as prefix to po files, while you're require to put all po files to subdirectory without such prefix. This does not sound right for me at all, why I should change name of po files?

I've tried to import files several times in the past, and LP always refused my archive. I don't understand what's wrong but it seems your importer is just broken, because import of single files working OK.

Revision history for this message
Alexander Belchenko (bialix) wrote :
Revision history for this message
Alexander Belchenko (bialix) wrote :

I've just exported fresh translations from LP and tried to upload them for 0.18 series. At least this time LP did not refused to import.

Revision history for this message
Данило Шеган (danilo) wrote :

I've never tried uploading a regular tarball (i.e. neither gzip or bzip2 compressed), and it seems that the logic to detect plain tarballs is broken. FWIW, we have

        elif content[257:262] == 'ustar':
            mode = "r|tar"

in lib/lp/translations/model/translationimportqueue.py addOrUpdateEntriesFromTarball() method, and I can see no 'ustar' in there (we do the manual checks to work-around some ancient bugs).

summary: - Can't upload exported translations from LP as new tar file
+ Uncompressed tarballs with translations not recognized
Changed in rosetta:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Данило Шеган (danilo) wrote : Re: Uncompressed tarballs with translations not recognized

Btw, how do you create these tar files? If I use GNU tar, it creates this 'ustar' signarture.

summary: - Uncompressed tarballs with translations not recognized
+ Some uncompressed tarballs with translations not recognized
Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 518010] Re: Uncompressed tarballs with translations not recognized

Данило Шеган пишет:
> Btw, how do you create these tar files? If I use GNU tar, it creates
> this 'ustar' signarture.

I've created them on Windows with help of 7z archiver.

Of course for windows users it will be much simpler if you will allow us
upload zip files instead of tarballs.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.