Item1556: installer installing files twice
Priority: Urgent
Current State: Closed
Released In: 1.0.6
Target Release: patch
Applies To: Engine
Component: configure
Branches:
partly related:
Item1629
"Find more Extensions" and install in configure is installing each file listed in the MANIFEST twice.
before configure, Find more extensions:
www-data@r17311:~/community.reefsimple.org/foswiki$ svn status | grep -v cgisess | grep -v 'igp_'
? working/work_areas/AttachContentPlugin
? pub/Trash
? data/Trash/.changes
? data/Main/.changes
? data/System/.changes
? data/Sandbox/.changes
after configure, Find more extensions:
www-data@r17311:~/community.reefsimple.org/foswiki$ svn status | grep -v cgisess | grep -v 'igp_'
? working/work_areas/AttachContentPlugin
? pub/Trash
? pub/System/GoogleAnalyticsPlugin
? templates/foswiki.googleanalytics.tmpl.bak
? templates/foswiki.googleanalytics.tmpl
? lib/Foswiki/Plugins/GoogleAnalyticsPlugin.pm.bak
? lib/Foswiki/Plugins/GoogleAnalyticsPlugin.pm
M data/log200905.txt
? data/Trash/.changes
? data/Main/.changes
M data/Main/SitePreferences.txt
? data/System/.changes
? data/System/GoogleAnalyticsPlugin.txt
? data/System/GoogleAnalyticsPlugin.txt.bak
? data/System/GoogleAnalyticsPlugin.txt,v
? data/Sandbox/.changes
some other data:
www-data@r17311:~/community.reefsimple.org/foswiki$ ls -l templates/foswiki.googleanalytics.tmpl.bak templates/foswiki.googleanalytics.tmpl
-rw-r--r-- 1 www-data www-data 723 2009-03-03 00:59 templates/foswiki.googleanalytics.tmpl
-rw-r--r-- 1 www-data www-data 723 2009-03-03 00:59 templates/foswiki.googleanalytics.tmpl.bak
www-data@r17311:~/community.reefsimple.org/foswiki$ diff templates/foswiki.googleanalytics.tmpl.bak templates/foswiki.googleanalytics.tmpl
www-data@r17311:~/community.reefsimple.org/foswiki$
--
WillNorris - 02 May 2009
Confirmed for a 1.0.5 with a test installation of
PersonalInfoAddOn.
--
OliverKrueger - 16 May 2009
NOTE that this is for a
fresh installation, and that there should be no
.bak
files generated yet (this is not a re-install or upgrade).
--
WillNorris - 18 May 2009
It very much depends what you did during the run of configure. if you installed the same extension twice, you'll get .bak files. Need to be more specific about what the problem is, here, please.
--
CrawfordCurrie - 26 May 2009
i'm painfully aware that
.bak
files are created when you already have an extension installed. as i say above, this was for a
fresh installation (first time the extension was installed), and therefore there should be no backup files generated. not sure what additional information you want, i've already placed a lot of information on this page.
did you even try to install a new extension and see if
.bak
files were generated?
--
WillNorris - 26 May 2009
Because the extension installer is designed to install packages that don't have installer scripts, such as those packaged for twiki using zip, it downloads and unpacks the package before looking for the installer script, and running it if it finds one. The installer scripts were designed to be runnable from the command line, and do a "pull" install by downloading the package. So this is what was happening; EXTEND was downloading and unpacking, and then the installer script was downloading and unpacking
again. D'oh.
--
CrawfordCurrie - 29 May 2009