Merge lp:~dcaro/clicompanion/fix-819038 into lp:clicompanion

Proposed by David Caro
Status: Rejected
Rejected by: Marek Bardoński
Proposed branch: lp:~dcaro/clicompanion/fix-819038
Merge into: lp:clicompanion
Diff against target: 233 lines (+99/-99)
4 files modified
.clicompanion (+48/-48)
clicompanionlib/controller.py (+2/-2)
clicompanionlib/view.py (+1/-1)
data/clicompanion2.config (+48/-48)
To merge this branch: bzr merge lp:~dcaro/clicompanion/fix-819038
Reviewer Review Type Date Requested Status
Duane Hinnen Needs Information
Review via email: mp+70061@code.launchpad.net

Description of the change

Fixed the bug 819038: if the command has ":" character, the command gets broken into two

Now the commands are separated with tabs.

To post a comment you must log in.
Revision history for this message
Duane Hinnen (duanedesign) wrote :

Hi,
Thank you for the contribution.
I thought we had fixed this bug.
I am unable to reproduce the problem.
If you are able to reproduce this please let me know and explain the command you are using so I can test it to see the problem.
Thank you!
Duane

review: Needs Information
Revision history for this message
Marek Bardoński (bdfhjk) wrote :

I rejected this branch, because I working on another with full path.

This path (branch) will produce critical bug after updating from old version (it will crash trying to read old stored commands).

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '.clicompanion'
2--- .clicompanion 2010-09-20 01:15:23 +0000
3+++ .clicompanion 2011-08-01 19:03:55 +0000
4@@ -1,48 +1,48 @@
5-dpkg -l @: package : Find version of a package
6-df -h: : file system disk space usage
7-free -m: : show RAM usage
8-ps auxww | grep @: process : displays information about the active process
9-iwconfig: : Display wireless network information
10-ifconfig -a: : displays the status of the currently active interfaces
11-sudo iwlist: : scan Scan Wireless networks
12-sudo /etc/init.d/networking restart: : Reset the Network
13-lsb_release -a: : What version of Ubuntu do I have?
14-uname -a: : What kernel am I running
15-sudo apt-get update && sudo apt-get upgrade: : Refresh update info and update all packages
16-sudo apt-get clean: : clear out all packages in /var/cache/apt/archives
17-sudo apt-get autoclean : : clear out obsolete packages(packages with a newer release)
18-apt-cache search @ :package : Find information on a package (not installed)
19-sudo lshw : : List hardware
20-lspci : : list all PCI devices
21-aplay -l : : List all soundcards and digital audio devices
22-cat @ :path: Read File & Print to Standard Output
23-ls @ :path : List Folders Contents
24-ls -lSr @ :path : Show files by size, biggest last
25-mv @ :path : Move (Rename) Files
26-cp @ :path : Copy Files
27-sudo lspci : : attached PCI devices
28-chmod @ @ : permissions, file : Change access permissions, change mode
29-chown @ @: owner:group, file : Change the owner and/or group of each given file
30-dmesg : : Print kernel & driver messages
31-history : : Command History
32-locate @ : file : Find files (updatedb to update DB)
33-sudo updatedb : : update the database for locate
34-which @ :command : Show full path name of command
35-find -maxdepth 1 -type f | xargs grep -F @ :string : Search all regular files for 'string' in this dir
36-gpg -c @ :file : Encypt a file
37-gpg @ :file.gpg : Decrypt a file
38-tar -xjf @ :archive.tar : Extract all files from archive.tar
39-tar -czf @ :Destination.tar.gz Source : Create Destination from Source
40-iostat : : cpu and I/O statistics
41-netstat : : Print network connections and interface statistics
42-sudo fdisk -l @ :disk : List partition tables for specified devices
43-sudo ufw enable : : Enable netfilter firewall
44-sudo ufw allow @ :port : Open a port in netfilter firewall
45-sudo ufw deny @ :port : Close a port in netfilter firewall
46-sudo ufw disable : : Disable netfilter firewall
47-cat @ @ | sort | uniq > @ : file1, file2, file3 : combine, sort and remove duplicates from 2 files
48-mkisofs -V LABEL -r dir | gzip > @ :isoname.iso.gz : Create cdrom image from contents of directory
49-cdrecord -v dev=/dev/cdrom -audio -pad *.wav : : Make audio CD from all wavs in current dir
50-dpkg-query -W -f='${Installed-Size;10}\t${Package}\n' | sort -k1,1n : : List all installed packages by size
51-tail -f /var/log/messages : : Monitor messages log file
52-apropos @ :command/package : search the manual page names and descriptions
53+dpkg -l @ package Find version of a package
54+df -h file system disk space usage
55+free -m show RAM usage
56+ps auxww | grep @ process displays information about the active process
57+iwconfig Display wireless network information
58+ifconfig -a displays the status of the currently active interfaces
59+sudo iwlist scan Scan Wireless networks
60+sudo /etc/init.d/networking restart Reset the Network
61+lsb_release -a What version of Ubuntu do I have?
62+uname -a What kernel am I running
63+sudo apt-get update && sudo apt-get upgrade Refresh update info and update all packages
64+sudo apt-get clean clear out all packages in /var/cache/apt/archives
65+sudo apt-get autoclean clear out obsolete packages(packages with a newer release)
66+apt-cache search @ package Find information on a package (not installed)
67+sudo lshw List hardware
68+lspci list all PCI devices
69+aplay -l List all soundcards and digital audio devices
70+cat @ path Read File & Print to Standard Output
71+ls @ path List Folders Contents
72+ls -lSr @ path Show files by size, biggest last
73+mv @ path Move (Rename) Files
74+cp @ path Copy Files
75+sudo lspci attached PCI devices
76+chmod @ @ permissions, file Change access permissions, change mode
77+chown @ @ owner group, file Change the owner and/or group of each given file
78+dmesg Print kernel & driver messages
79+history Command History
80+locate @ file Find files (updatedb to update DB)
81+sudo updatedb update the database for locate
82+which @ command Show full path name of command
83+find -maxdepth 1 -type f | xargs grep -F @ string Search all regular files for 'string' in this dir
84+gpg -c @ file Encypt a file
85+gpg @ file.gpg Decrypt a file
86+tar -xjf @ archive.tar Extract all files from archive.tar
87+tar -czf @ Destination.tar.gz Source Create Destination from Source
88+iostat cpu and I/O statistics
89+netstat Print network connections and interface statistics
90+sudo fdisk -l @ disk List partition tables for specified devices
91+sudo ufw enable Enable netfilter firewall
92+sudo ufw allow @ port Open a port in netfilter firewall
93+sudo ufw deny @ port Close a port in netfilter firewall
94+sudo ufw disable Disable netfilter firewall
95+cat @ @ | sort | uniq > @ file1, file2, file3 combine, sort and remove duplicates from 2 files
96+mkisofs -V LABEL -r dir | gzip > @ isoname.iso.gz Create cdrom image from contents of directory
97+cdrecord -v dev=/dev/cdrom -audio -pad *.wav Make audio CD from all wavs in current dir
98+dpkg-query -W -f='${Installed-Size;10}\t${Package}\n' | sort -k1,1n List all installed packages by size
99+tail -f /var/log/messages Monitor messages log file
100+apropos @ command/package search the manual page names and descriptions
101
102=== modified file 'clicompanionlib/controller.py'
103--- clicompanionlib/controller.py 2011-05-21 20:23:59 +0000
104+++ clicompanionlib/controller.py 2011-08-01 19:03:55 +0000
105@@ -160,12 +160,12 @@
106 if text1 != "":
107 with open(CHEATSHEET, "r") as cheatfile:
108 cheatlines = cheatfile.readlines()
109- cheatlines.append(text1+":"+text2+":"+text3+'\n')
110+ cheatlines.append(text1+"\t"+text2+"\t"+text3+'\n')
111 cheatfile.close()
112 with open(CHEATSHEET, "w") as cheatfile2:
113 cheatfile2.writelines(cheatlines)
114 cheatfile2.close()
115- l = str(text1+":"+text2+":"+text3)
116+ l = str(text1+"\t"+text2+"\t"+text3)
117 #ls = l.split(':',2)
118 ## update view.CMNDS variable
119 filteredcommandplus = text1, text2, text3
120
121=== modified file 'clicompanionlib/view.py'
122--- clicompanionlib/view.py 2011-06-11 10:30:58 +0000
123+++ clicompanionlib/view.py 2011-08-01 19:03:55 +0000
124@@ -104,7 +104,7 @@
125
126 ## add bug data from .clicompanion --> bugdata --> to the liststore
127 for line in bugdata.splitlines():
128- l = line.split(':',2)
129+ l = line.split('\t',2)
130 commandplus = l[0], l[1], l[2]
131 CMNDS.append(commandplus)
132 self.liststore.append([l[0],l[1],l[2]])
133
134=== modified file 'data/clicompanion2.config'
135--- data/clicompanion2.config 2010-11-30 16:03:59 +0000
136+++ data/clicompanion2.config 2011-08-01 19:03:55 +0000
137@@ -1,48 +1,48 @@
138-dpkg -l ?:package:Find version of a package
139-df -h::file system disk space usage
140-free -m::show RAM usage
141-ps auxww | grep ?:process:displays information about the active process
142-iwconfig::Display wireless network information
143-ifconfig -a::displays the status of the currently active interfaces
144-sudo iwlist::scan Scan Wireless networks
145-sudo /etc/init.d/networking restart::Reset the Network
146-lsb_release -a::What version of Ubuntu do I have?
147-uname -a::What kernel am I running
148-sudo apt-get update && sudo apt-get upgrade::Refresh update info and update all packages
149-sudo apt-get clean::clear out all packages in /var/cache/apt/archives
150-sudo apt-get autoclean::clear out obsolete packages(packages with a newer release)
151-apt-cache search ?:package:Find information on a package (not installed)
152-sudo lshw::List hardware
153-lspci::list all PCI devices
154-aplay -l::List all soundcards and digital audio devices
155-cat ?:path:Read File & Print to Standard Output
156-ls ? :path:List Folders Contents
157-ls -lSr ?:path:Show files by size, biggest last
158-mv ?:path:Move (Rename) Files
159-cp ?:path:Copy Files
160-sudo lspci::attached PCI devices
161-chmod ? ?:permissions, file:Change access permissions, change mode
162-chown ? ?:owner,group, file:Change the owner and/or group of each given file
163-dmesg::Print kernel & driver messages
164-history::Command History
165-locate ?:file:Find files (updatedb to update DB)
166-sudo updatedb::update the database for locate
167-which ?:command:Show full path name of command
168-find -maxdepth 1 -type f | xargs grep -F ?:string:Search all regular files for 'string' in this dir
169-gpg -c ?:file:Encypt a file
170-gpg ?:file.gpg:Decrypt a file
171-tar -xjf ?:archive.tar:Extract all files from archive.tar
172-tar -czf ?:Destination.tar.gz Source:Create Destination from Source
173-iostat::cpu and I/O statistics
174-netstat::Print network connections and interface statistics
175-sudo fdisk -l ?:disk:List partition tables for specified devices
176-sudo ufw enable::Enable netfilter firewall
177-sudo ufw allow ?:port:Open a port in netfilter firewall
178-sudo ufw deny ?:port:Close a port in netfilter firewall
179-sudo ufw disable::Disable netfilter firewall
180-cat ? ? | sort | uniq > ? :file1, file2, file3:combine, sort and remove duplicates from 2 files
181-mkisofs -V LABEL -r dir | gzip > ?:isoname.iso.gz:Create cdrom image(iso) from contents of directory(pwd)
182-cdrecord -v dev=/dev/cdrom -audio -pad *.wav::Make audio CD from all wavs in current dir(pwd)
183-dpkg-query -W -f='${Installed-Size;10}\t${Package}\n' | sort -k1,1n::List all installed packages by size
184-tail -f /var/log/messages::Monitor messages log file
185-apropos ?:command or package:search the manual page names and descriptions
186+dpkg -l ? package Find version of a package
187+df -h file system disk space usage
188+free -m show RAM usage
189+ps auxww | grep ? process displays information about the active process
190+iwconfig Display wireless network information
191+ifconfig -a displays the status of the currently active interfaces
192+sudo iwlist scan Scan Wireless networks
193+sudo /etc/init.d/networking restart Reset the Network
194+lsb_release -a What version of Ubuntu do I have?
195+uname -a What kernel am I running
196+sudo apt-get update && sudo apt-get upgrade Refresh update info and update all packages
197+sudo apt-get clean clear out all packages in /var/cache/apt/archives
198+sudo apt-get autoclean clear out obsolete packages(packages with a newer release)
199+apt-cache search ? package Find information on a package (not installed)
200+sudo lshw List hardware
201+lspci list all PCI devices
202+aplay -l List all soundcards and digital audio devices
203+cat ? path Read File & Print to Standard Output
204+ls ? path List Folders Contents
205+ls -lSr ? path Show files by size, biggest last
206+mv ? path Move (Rename) Files
207+cp ? path Copy Files
208+sudo lspci attached PCI devices
209+chmod ? ? permissions, file Change access permissions, change mode
210+chown ? ? owner,group, file Change the owner and/or group of each given file
211+dmesg Print kernel & driver messages
212+history Command History
213+locate ? file Find files (updatedb to update DB)
214+sudo updatedb update the database for locate
215+which ? command Show full path name of command
216+find -maxdepth 1 -type f | xargs grep -F ? string Search all regular files for 'string' in this dir
217+gpg -c ? file Encypt a file
218+gpg ? file.gpg Decrypt a file
219+tar -xjf ? archive.tar Extract all files from archive.tar
220+tar -czf ? Destination.tar.gz Source Create Destination from Source
221+iostat cpu and I/O statistics
222+netstat Print network connections and interface statistics
223+sudo fdisk -l ? disk List partition tables for specified devices
224+sudo ufw enable Enable netfilter firewall
225+sudo ufw allow ? port Open a port in netfilter firewall
226+sudo ufw deny ? port Close a port in netfilter firewall
227+sudo ufw disable Disable netfilter firewall
228+cat ? ? | sort | uniq > ? file1, file2, file3 combine, sort and remove duplicates from 2 files
229+mkisofs -V LABEL -r dir | gzip > ? isoname.iso.gz Create cdrom image(iso) from contents of directory(pwd)
230+cdrecord -v dev=/dev/cdrom -audio -pad *.wav Make audio CD from all wavs in current dir(pwd)
231+dpkg-query -W -f='${Installed-Size;10}\t${Package}\n' | sort -k1,1n List all installed packages by size
232+tail -f /var/log/messages Monitor messages log file
233+apropos ? command or package search the manual page names and descriptions

Subscribers

People subscribed via source and target branches