flipperzero-firmware icon indicating copy to clipboard operation
flipperzero-firmware copied to clipboard

Resources wont get updated if older update folder exists

Open ankris812 opened this issue 2 years ago • 6 comments

Describe the bug.

If i upload an update, and there is already a folder on ext/update with that name,no files will be updated, it will skip them it happened when trying to update a local build of the firm, i was trying to change the flipper dict, deleted previous one, copied the new, without seeing that it had a typo on name, i fixed the typo, but when updating again error was still there.

Reproduction

Reproduction for my case:

delete mf_classic_dict.nfc ( i was setting my sd from zero, so this file didnt exist), rename on assets/resources/nfc/assets mf_classic_dict.nfc to mfc_classic_dict.nfc (i copied it without noticing the typo) compile, and update. fix the typo. compile again. load tgz with qflipper it will skip uploading and update again with old update error will still be there

Target

qflipper

Logs

37936 [UTL] Prepare Update @Korai SUCCESS
37936 [DBG] Update package has been already uploaded, skipping to update...
37937 [UTL] Start Update @Korai START

Anything else?

my build always take the name local, so folder inside update is always f7-update-local, so i dont know if this will happen on offical releases.

ankris812 avatar Oct 16 '22 15:10 ankris812

I do not think that this problem relates to the firmware, rather to the qFlipper.

DrZlo13 avatar Oct 16 '22 15:10 DrZlo13

I do not think that this problem relates to the firmware, rather to the qFlipper.

the firmware? is the firmware who uploads the updates files?

ankris812 avatar Oct 17 '22 00:10 ankris812

i don't do updates with qflipper, i do them on-device. i keep a directory of my SD card layout as a repo and use rsync (rsync -azvP --delete local-copy/ /Volumes/SDCARD/) to refresh and i don't think i see the same behavior you're reporting. i haven't deleted an entire folder from my SDCARD yet if that's the test you're hoping to get confirmation on @ankris812 but i don't think i will ever use qflipper to do firmware installation personaly.

emory avatar Oct 20 '22 22:10 emory

@emory the problem only happens when updating with qflipper. And i'll check what You do to update

ankris812 avatar Oct 21 '22 08:10 ankris812

Upload script actually verifies checksums and skips upload if file was not changed. Are you sure that you have something to upload?

skotopes avatar Dec 01 '22 17:12 skotopes

Yes. But i'll check It again anyways

El jue, 1 dic 2022 18:37, あく @.***> escribió:

Upload script actually verifies checksums and skips upload if file was not changed. Are you sure that you have something to upload?

— Reply to this email directly, view it on GitHub https://github.com/flipperdevices/flipperzero-firmware/issues/1881#issuecomment-1334120294, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO6CI373ETZSYXGXNLAOEALWLDO45ANCNFSM6AAAAAARGMJSSU . You are receiving this because you were mentioned.Message ID: @.***>

ankris812 avatar Dec 01 '22 17:12 ankris812

This is qFlipper's issue, not the firmware's.

hedger avatar Jan 11 '23 15:01 hedger

Also please use fbt flash_usb_full.

hedger avatar Jan 11 '23 15:01 hedger