What happens if I buy a game I already own through Steam a second time?
Solution 1:
As of March 2016, Steam now subtracts the price of owned games from bundles, so you don't have to re-buy them.
"Past Complete Packs were sometimes a bad deal for customers that already [owned] one or more of the products in the pack," Valve added. "Either it made bad economic sense for those customers to purchase the pack, or they just felt bad about doing so since it [looked] like they were paying for products they already [had]. The new Steam Bundles system addresses this.
In fact, here's a bundle viewed from my own account:
And from incognito:
Note how the base price of the bundle is about $5 cheaper when I'm logged in.
Packages
However, it's important to note that Steam makes a distinction between "bundles" and "packages".
Packages are a fixed price - if you already own something in it, you dont get a lower price or a second copy. Bundles will take out content you already own and adjust the price accordingly.
-moistly harmless, Jul 2, 2017
With packages, the prices are fixed, and you pay the full price no matter what. So it would be silly to buy the game and then buy the game + OST package. Because you'd be paying for the game twice and only getting one copy.
Before buying the game:
And after:
That base price won't budge.
...I just bought a game to illustrate a point.
Solution 2:
Steam won't let you buy the same product twice (without it being a gift). For your particular case with the with the Potato Sack Pack containing things you already own, on the product listing it mentions:
About this game
Already own one or more of the games in this pack? Not to worry, you can give your extra copy of any game in this pack to a friend.
Extra copies are essentially the same as gifts, and you can freely give them to whomever you want. The recipient need not have a Steam account, the email Steam sends will instruct them how to make an account.
However, you are by no means guaranteed to get extra copies when you purchase a pack containing games you own; the Steam KB mentions
Extra copies are not given in most cases.
Only titles purchased in special promotions as outlined below are eligible for giftable extra copies
It lists a few (Orange Box, L4D packs, Dawn of War II), but obviously if the product page explicitly mentions so, then that would take precedence. Additionally, the cost of a pack is not prorated, regardless of you already owning some parts of it.
For some games at least, Steam will notify you of this overlap (and loss) when you're reviewing (before) your purchase. For example, below, I already have Far Cry (1), so when I buy the Far Cry Franchise pack (includes 1-3), I'm effectively wasting that bit of it.
In order to gift the spare copies, in the Steam client go to Games >> Manage Gifts and Guest Passes... There it will list all the extra copies you have to give, and you can either give them to someone else (or yourself, if you don't have it).