touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #131633
[Bug 1537753] Re: ucf --purge reaches code where basename doesn't have a parameter
** Also affects: hundredpapercuts
Importance: Undecided
Status: New
** Changed in: hundredpapercuts
Status: New => Confirmed
** Changed in: ucf (Ubuntu)
Importance: Undecided => High
** Changed in: hundredpapercuts
Importance: Undecided => High
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ucf in Ubuntu.
https://bugs.launchpad.net/bugs/1537753
Title:
ucf --purge reaches code where basename doesn't have a parameter
Status in One Hundred Papercuts:
Confirmed
Status in ucf package in Ubuntu:
Confirmed
Bug description:
When I was clearing up unpurged packages, grub-pc was not being purged because of an error "basename: missing operand". Looked at the code and "ucf --purge /etc/default/grub" was bailing out at line 472, which has the code:
old_mdsum_file="$source_dir/$(basename ${new_file}).md5sum";
Looking at ${new_file} at the code above, sure enough, it wasn't being initialized at purge (line numbers 349 - 374). So I changed the else to test if $new_file was there and I was able to purge grub-pc.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: ucf 3.0032 [modified: usr/bin/ucf]
ProcVersionSignature: Ubuntu 4.3.0-6.17-generic 4.3.3
Uname: Linux 4.3.0-6-generic x86_64
ApportVersion: 2.19.3-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Jan 25 21:08:03 2016
EcryptfsInUse: Yes
InstallationDate: Installed on 2015-09-28 (118 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
PackageArchitecture: all
SourcePackage: ucf
UpgradeStatus: Upgraded to xenial on 2016-01-06 (18 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/hundredpapercuts/+bug/1537753/+subscriptions
References