longsleep / build-pine64-image

Pine64 Linux build scripts, tools and instructions
MIT License
235 stars 126 forks source link

fix update failed when status file not exist #26

Closed vanloswang closed 7 years ago

eddyp commented 8 years ago

I think I have ran into the same issue when building from scratch a new rootfs, but I suspected it was due to some broken logic in the MARK_ONLY code path.

longsleep commented 8 years ago

This patch has at least one flaw and i also do not see why it should be required in the first place as the existing code works just fine when the $CURRENFILE does not exist. Please explain your issues so i get the idea what is the problem.

vanloswang commented 8 years ago

@longsleep In my country the http respones is etag, maybe we should use 'grep -E'.

eddyp commented 8 years ago

@vanloswang To accomodate both cases, you probably need 'grep -i' instead.

vanloswang commented 8 years ago

@eddyp my mistake. yes it should be 'grep -i'.