cross is now running Foswiki 2.1.3 Beta 1. Please open a task for any issues.

Item1556: installer installing files twice

Priority: Urgent
Current State: Closed
Released In: 1.0.6
Target Release: patch
Applies To: Engine
Component: configure
Reported By: WillNorris
Waiting For:
Last Change By: KennethLavrsen
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:~/$ 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:~/$ 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/
?      lib/Foswiki/Plugins/
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:~/$ 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:~/$ diff templates/foswiki.googleanalytics.tmpl.bak templates/foswiki.googleanalytics.tmpl

-- 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

ItemTemplate edit

Summary installer installing files twice
ReportedBy WillNorris
Codebase 1.0.5, 1.0.4
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Engine
Component configure
Priority Urgent
CurrentState Closed
Checkins distro:ef071d9eaec6 distro:122b24dab0eb
TargetRelease patch
ReleasedIn 1.0.6
Topic revision: r14 - 22 Jun 2009, KennethLavrsen - This page was cached on 20 Jan 2017 - 13:04.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License