Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6815

sha1sum of file is different than context has in file.xml

$
0
0
by Peter Kelly.  

I'm having to do a lot of edits to a number of courses, the edits are to insert {mlang} tags around content in the page.xml

After making the edits I need to update the file.xml file with new context hash for the edited file.

My plan was to check the sha1sum before editing, then check it after editing and update the file.xml accordingly (with a sed 's/oldhash/newhash/g')

But the sha1sum isn't in the file.xml file.

Am I misunderstanding how the context hash is generated?

peter@Talesian:~/Desktop/translate/le5_drug_2$ shasum activities/page_10/page.xml 
eb41f1c0b34e1501a2222fde0a2c7bb11830f3bc  activities/page_10/page.xml
peter@Talesian:~/Desktop/translate/le5_drug_2$ nano activities/page_10/page.xml 
peter@Talesian:~/Desktop/translate/le5_drug_2$ shasum activities/page_10/page.xml 
606813e5d311db8ac7d6f85420eb7ffca00ca54d  activities/page_10/page.xml



Viewing all articles
Browse latest Browse all 6815

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>