[SRU] Avoid error message when the file doesn't exist

Bug #1911379 reported by Patrick Wu
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wslu (Ubuntu)
Fix Released
Low
Unassigned
Groovy
Fix Released
Low
Unassigned
Hirsute
Fix Released
Low
Unassigned

Bug Description

[Impact]

this affects wslu 3.x which, when tries to start with a clean environment after upgrade, the terminal will throw `rm: file not found` error.

[Test Case]

 * Install Ubuntu 20.10 to WSL.
 * run any wslu tools (like wslfetch)
 * Verify that there is no `rm -rf` error.

[Regression Potential]

This patch will try to remove ~/.config/wslu/ to order to reset to default state (especially when first upgrade to latest wslu). Potential regressions would be a result of ~/.config/wslu/ not being cleaned properly.

Related branches

Patrick Wu (callmepk)
Changed in wslu (Ubuntu):
status: New → Incomplete
Patrick Wu (callmepk)
Changed in wslu (Ubuntu Hirsute):
status: Incomplete → New
description: updated
Patrick Wu (callmepk)
description: updated
description: updated
Patrick Wu (callmepk)
no longer affects: wslu (Ubuntu Focal)
description: updated
summary: - [SRU] wslu 3.2.1-0ubuntu2
+ [SRU] wslu 3.2.1-0ubuntu2 to hirsute and groovy
Patrick Wu (callmepk)
summary: - [SRU] wslu 3.2.1-0ubuntu2 to hirsute and groovy
+ [SRU] Avoid error message when the file doesn't exist
Revision history for this message
Sebastien Bacher (seb128) wrote :

Upload to H and SRU to G

Changed in wslu (Ubuntu Groovy):
importance: Undecided → Low
Changed in wslu (Ubuntu Hirsute):
importance: Undecided → Low
Changed in wslu (Ubuntu Groovy):
status: New → Fix Committed
Changed in wslu (Ubuntu Hirsute):
status: New → Fix Committed
Revision history for this message
Brian Murray (brian-murray) wrote :

Due to the incorrectly formatted changelog entry this was not automatically closed for hirsute by the janitor.

wslu (3.2.1-0ubuntu2) hirsute; urgency=medium

  * header: Avoid error message when the file doesn't
    exist (LP: 1911379)

 -- Patrick Wu <email address hidden> Wed, 13 Jan 2021 11:26:25 +0800

Changed in wslu (Ubuntu Hirsute):
status: Fix Committed → Fix Released
tags: added: verification-needed verification-needed-groovy
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Patrick, or anyone else affected,

Accepted wslu into groovy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/wslu/3.2.1-0ubuntu1.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-groovy to verification-done-groovy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-groovy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Patrick Wu (callmepk) wrote :
tags: added: verification-done-groovy
removed: verification-needed-groovy
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package wslu - 3.2.1-0ubuntu1.1

---------------
wslu (3.2.1-0ubuntu1.1) groovy; urgency=medium

  * header: Avoid error message when the file doesn't
    exist (LP: #1911379)

 -- Patrick Wu <email address hidden> Wed, 13 Jan 2021 11:26:25 +0800

Changed in wslu (Ubuntu Groovy):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for wslu has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Mathew Hodson (mhodson)
tags: removed: verification-needed
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.