Added an add-repository command to apt script #34

Merged
merged 2 commits into from Nov 24, 2015

Conversation

Projects
None yet
3 participants
@MichaelTunnell
Contributor

MichaelTunnell commented Nov 23, 2015

I really like this approach to simplifying the apt command more so than Debian has but the one thing that I felt that was missing was integration with the add-apt-repository script to add new entries to the sources.list file. This pull requests adds an add-repository command to the apt script.

MichaelTunnell added some commits Nov 23, 2015

Added a add-repository command
added the command add-repository to simply the process of add-apt-repository to become "apt add-repository argoptions"
updated add-repository description
Updated the description of the add-repository command.

clefebvre added a commit that referenced this pull request Nov 24, 2015

Merge pull request #34 from MichaelTunnell/master
Added an add-repository command to apt script

@clefebvre clefebvre merged commit f3e7517 into linuxmint:master Nov 24, 2015

@@ -106,6 +107,8 @@ elif argcommand == "deb":
command = sudo + " dpkg -i" + argoptions
elif argcommand == "download":
command = "LC_ALL=C apt-cache depends " + argoptions + " |grep -v \"Conflicts:\|Replaces:\"|awk '{print $NF}'|sed -e 's/[<>]//g'|xargs aptitude download -r"
+elif argcommand == "add-repository":
+ command = sudo + "add-apt-repository" + argoptions

This comment has been minimized.

@CSharpFan

CSharpFan Nov 30, 2015

command = sudo + "add-apt-repository" + argoptions
Should be
command = sudo + " add-apt-repository" + argoptions

Notice space before add-apt-repository

@CSharpFan

CSharpFan Nov 30, 2015

command = sudo + "add-apt-repository" + argoptions
Should be
command = sudo + " add-apt-repository" + argoptions

Notice space before add-apt-repository

@MichaelTunnell

This comment has been minimized.

Show comment
Hide comment
@MichaelTunnell

MichaelTunnell Nov 30, 2015

Contributor

I submitted it with a space I could have sworn but perhaps I didn't.

Contributor

MichaelTunnell commented Nov 30, 2015

I submitted it with a space I could have sworn but perhaps I didn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment