[Bug 939528] Re: auto-upgrade-tester: Add a post-upgrade test to check for obsolete files
Jean-Baptiste Lallement
jean-baptiste at ubuntu.com
Thu Feb 23 14:07:19 UTC 2012
** Changed in: update-manager (Ubuntu)
Importance: Undecided => Medium
** Changed in: update-manager (Ubuntu)
Status: New => Triaged
** Changed in: update-manager (Ubuntu)
Assignee: (unassigned) => Jean-Baptiste Lallement (jibel)
** Changed in: update-manager (Ubuntu)
Milestone: None => ubuntu-12.04-beta-2
** Description changed:
auto-upgrade-tester: Add a post-upgrade test to check for obsolete files.
- Test fails if the list in not empty.
+ Test fails if the list is not empty.
Script from upgrade-system
- #################################
- ### REMOVING OBSOLETE CONFIGS ###
- #################################
- echo "${BOLD}D) Checking for obsolete configurations:${RESET}"
- ORPHANS=$( dpkg-query -W -f='${Conffiles}\n' | grep obsolete | awk {'print $1'} )
- ##DEPENDS: dpkg (main/required), grep (main/required), mawk (main/required).
- case $ORPHANS in
- "")
- echo "I: No obsolete configuration to purge."
- break
- ;;
- *)
- echo "I: Removing obsolete configurations..."
- unique(){
- dpkg -S $ORPHANS | cut -d ':' -f 1 | uniq
- ##DEPENDS: dpkg (main/required), dpkg (main/required), coreutils (main/required).
- }
- UNIQUE=$( unique )
- NUMBER=$( unique | wc -l )
- echo "I: Number of packages affected: $NUMBER."
- dpkg -S $ORPHANS
- ##DEPENDS: dpkg (main/required).
- echo "${YELLOW}W: BEWARE OF FALSE POSITIVES! DELETE WITH EXTREME CAUTION!${RESET}"
- rm -i $ORPHANS
- ##DEPENDS: coreutils (main/required).
- apt-get $NOTTY --reinstall install ${UNIQUE}
- ##DEPENDS: apt (main/important).
- ### Escape dangerous purges automatically.
- if [ $? != 0 ]
- then
- break
- fi
- ;;
- esac
+ #################################
+ ### REMOVING OBSOLETE CONFIGS ###
+ #################################
+ echo "${BOLD}D) Checking for obsolete configurations:${RESET}"
+ ORPHANS=$( dpkg-query -W -f='${Conffiles}\n' | grep obsolete | awk {'print $1'} )
+ ##DEPENDS: dpkg (main/required), grep (main/required), mawk (main/required).
+ case $ORPHANS in
+ "")
+ echo "I: No obsolete configuration to purge."
+ break
+ ;;
+ *)
+ echo "I: Removing obsolete configurations..."
+ unique(){
+ dpkg -S $ORPHANS | cut -d ':' -f 1 | uniq
+ ##DEPENDS: dpkg (main/required), dpkg (main/required), coreutils (main/required).
+ }
+ UNIQUE=$( unique )
+ NUMBER=$( unique | wc -l )
+ echo "I: Number of packages affected: $NUMBER."
+ dpkg -S $ORPHANS
+ ##DEPENDS: dpkg (main/required).
+ echo "${YELLOW}W: BEWARE OF FALSE POSITIVES! DELETE WITH EXTREME CAUTION!${RESET}"
+ rm -i $ORPHANS
+ ##DEPENDS: coreutils (main/required).
+ apt-get $NOTTY --reinstall install ${UNIQUE}
+ ##DEPENDS: apt (main/important).
+ ### Escape dangerous purges automatically.
+ if [ $? != 0 ]
+ then
+ break
+ fi
+ ;;
+ esac
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: update-manager 1:0.156.5
ProcVersionSignature: Ubuntu 3.2.0-17.26-generic 3.2.6
Uname: Linux 3.2.0-17-generic x86_64
ApportVersion: 1.92-0ubuntu1
Aptdaemon:
-
+
Architecture: amd64
Date: Thu Feb 23 15:02:45 2012
EcryptfsInUse: Yes
GsettingsChanges:
- com.ubuntu.update-manager first-run false
- com.ubuntu.update-manager launch-time 1329006352
- com.ubuntu.update-manager show-details true
- com.ubuntu.update-manager window-height 671
- com.ubuntu.update-manager window-width 600
+ com.ubuntu.update-manager first-run false
+ com.ubuntu.update-manager launch-time 1329006352
+ com.ubuntu.update-manager show-details true
+ com.ubuntu.update-manager window-height 671
+ com.ubuntu.update-manager window-width 600
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
PackageArchitecture: all
ProcEnviron:
- TERM=xterm
- PATH=(custom, user)
- LANG=en_US.utf8
- SHELL=/bin/bash
+ TERM=xterm
+ PATH=(custom, user)
+ LANG=en_US.utf8
+ SHELL=/bin/bash
SourcePackage: update-manager
UpgradeStatus: No upgrade log present (probably fresh install)
** Description changed:
auto-upgrade-tester: Add a post-upgrade test to check for obsolete files.
Test fails if the list is not empty.
Script from upgrade-system
#################################
### REMOVING OBSOLETE CONFIGS ###
#################################
echo "${BOLD}D) Checking for obsolete configurations:${RESET}"
ORPHANS=$( dpkg-query -W -f='${Conffiles}\n' | grep obsolete | awk {'print $1'} )
##DEPENDS: dpkg (main/required), grep (main/required), mawk (main/required).
case $ORPHANS in
"")
echo "I: No obsolete configuration to purge."
break
;;
*)
echo "I: Removing obsolete configurations..."
unique(){
dpkg -S $ORPHANS | cut -d ':' -f 1 | uniq
##DEPENDS: dpkg (main/required), dpkg (main/required), coreutils (main/required).
}
UNIQUE=$( unique )
NUMBER=$( unique | wc -l )
echo "I: Number of packages affected: $NUMBER."
dpkg -S $ORPHANS
##DEPENDS: dpkg (main/required).
echo "${YELLOW}W: BEWARE OF FALSE POSITIVES! DELETE WITH EXTREME CAUTION!${RESET}"
rm -i $ORPHANS
##DEPENDS: coreutils (main/required).
apt-get $NOTTY --reinstall install ${UNIQUE}
##DEPENDS: apt (main/important).
### Escape dangerous purges automatically.
if [ $? != 0 ]
then
break
fi
;;
esac
-
- ProblemType: Bug
- DistroRelease: Ubuntu 12.04
- Package: update-manager 1:0.156.5
- ProcVersionSignature: Ubuntu 3.2.0-17.26-generic 3.2.6
- Uname: Linux 3.2.0-17-generic x86_64
- ApportVersion: 1.92-0ubuntu1
- Aptdaemon:
-
- Architecture: amd64
- Date: Thu Feb 23 15:02:45 2012
- EcryptfsInUse: Yes
- GsettingsChanges:
- com.ubuntu.update-manager first-run false
- com.ubuntu.update-manager launch-time 1329006352
- com.ubuntu.update-manager show-details true
- com.ubuntu.update-manager window-height 671
- com.ubuntu.update-manager window-width 600
- InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
- PackageArchitecture: all
- ProcEnviron:
- TERM=xterm
- PATH=(custom, user)
- LANG=en_US.utf8
- SHELL=/bin/bash
- SourcePackage: update-manager
- UpgradeStatus: No upgrade log present (probably fresh install)
** Summary changed:
- auto-upgrade-tester: Add a post-upgrade test to check for obsolete files
+ auto-upgrade-tester: Add a post-upgrade test to check for obsolete config files
** Description changed:
- auto-upgrade-tester: Add a post-upgrade test to check for obsolete files.
+ auto-upgrade-tester: Add a post-upgrade test to check for obsolete config files.
Test fails if the list is not empty.
Script from upgrade-system
#################################
### REMOVING OBSOLETE CONFIGS ###
#################################
echo "${BOLD}D) Checking for obsolete configurations:${RESET}"
ORPHANS=$( dpkg-query -W -f='${Conffiles}\n' | grep obsolete | awk {'print $1'} )
##DEPENDS: dpkg (main/required), grep (main/required), mawk (main/required).
case $ORPHANS in
"")
echo "I: No obsolete configuration to purge."
break
;;
*)
echo "I: Removing obsolete configurations..."
unique(){
dpkg -S $ORPHANS | cut -d ':' -f 1 | uniq
##DEPENDS: dpkg (main/required), dpkg (main/required), coreutils (main/required).
}
UNIQUE=$( unique )
NUMBER=$( unique | wc -l )
echo "I: Number of packages affected: $NUMBER."
dpkg -S $ORPHANS
##DEPENDS: dpkg (main/required).
echo "${YELLOW}W: BEWARE OF FALSE POSITIVES! DELETE WITH EXTREME CAUTION!${RESET}"
rm -i $ORPHANS
##DEPENDS: coreutils (main/required).
apt-get $NOTTY --reinstall install ${UNIQUE}
##DEPENDS: apt (main/important).
### Escape dangerous purges automatically.
if [ $? != 0 ]
then
break
fi
;;
esac
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-manager in Ubuntu.
https://bugs.launchpad.net/bugs/939528
Title:
auto-upgrade-tester: Add a post-upgrade test to check for obsolete
config files
Status in “update-manager” package in Ubuntu:
Triaged
Bug description:
auto-upgrade-tester: Add a post-upgrade test to check for obsolete config files.
Test fails if the list is not empty.
Script from upgrade-system
#################################
### REMOVING OBSOLETE CONFIGS ###
#################################
echo "${BOLD}D) Checking for obsolete configurations:${RESET}"
ORPHANS=$( dpkg-query -W -f='${Conffiles}\n' | grep obsolete | awk {'print $1'} )
##DEPENDS: dpkg (main/required), grep (main/required), mawk (main/required).
case $ORPHANS in
"")
echo "I: No obsolete configuration to purge."
break
;;
*)
echo "I: Removing obsolete configurations..."
unique(){
dpkg -S $ORPHANS | cut -d ':' -f 1 | uniq
##DEPENDS: dpkg (main/required), dpkg (main/required), coreutils (main/required).
}
UNIQUE=$( unique )
NUMBER=$( unique | wc -l )
echo "I: Number of packages affected: $NUMBER."
dpkg -S $ORPHANS
##DEPENDS: dpkg (main/required).
echo "${YELLOW}W: BEWARE OF FALSE POSITIVES! DELETE WITH EXTREME CAUTION!${RESET}"
rm -i $ORPHANS
##DEPENDS: coreutils (main/required).
apt-get $NOTTY --reinstall install ${UNIQUE}
##DEPENDS: apt (main/important).
### Escape dangerous purges automatically.
if [ $? != 0 ]
then
break
fi
;;
esac
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/939528/+subscriptions
More information about the foundations-bugs
mailing list